A collection of non-overlapping OGRPolygon. More...
#include <ogr_geometry.h>
Public Member Functions | |
OGRMultiPolygon () | |
Create an empty multi polygon collection. | |
virtual const char * | getGeometryName () const |
Fetch WKT name for geometry type. | |
virtual OGRwkbGeometryType | getGeometryType () const |
Fetch geometry type. | |
virtual OGRErr | exportToWkt (char **, OGRwkbVariant=wkbVariantOldOgc) const |
Convert a geometry into well known text format. | |
virtual OGRErr | PointOnSurface (OGRPoint *poPoint) const |
This method relates to the SFCOM IMultiSurface::get_PointOnSurface() method. | |
virtual OGRBoolean | hasCurveGeometry (int bLookForNonLinear=FALSE) const |
Static Public Member Functions | |
static OGRMultiSurface * | CastToMultiSurface (OGRMultiPolygon *poMP) |
Cast to multisurface. | |
Protected Member Functions | |
virtual OGRBoolean | isCompatibleSubType (OGRwkbGeometryType) const |
A collection of non-overlapping OGRPolygon.
OGRMultiSurface * OGRMultiPolygon::CastToMultiSurface | ( | OGRMultiPolygon * | poMP | ) | [static] |
Cast to multisurface.
The passed in geometry is consumed and a new one returned .
poMP | the input geometry - ownership is passed to the method. |
OGRErr OGRMultiPolygon::exportToWkt | ( | char ** | ppszDstText, | |
OGRwkbVariant | eWkbVariant = wkbVariantOldOgc | |||
) | const [virtual] |
Convert a geometry into well known text format.
This method relates to the SFCOM IWks::ExportToWKT() method.
This method is the same as the C function OGR_G_ExportToWkt().
ppszDstText | a text buffer is allocated by the program, and assigned to the passed pointer. After use, *ppszDstText should be freed with OGRFree(). | |
eWkbVariant | the specification that must be conformed too :
|
Reimplemented from OGRMultiSurface.
const char * OGRMultiPolygon::getGeometryName | ( | ) | const [virtual] |
Fetch WKT name for geometry type.
There is no SFCOM analog to this method.
This method is the same as the C function OGR_G_GetGeometryName().
Reimplemented from OGRMultiSurface.
OGRwkbGeometryType OGRMultiPolygon::getGeometryType | ( | ) | const [virtual] |
Fetch geometry type.
Note that the geometry type may include the 2.5D flag. To get a 2D flattened version of the geometry type apply the wkbFlatten() macro to the return result.
This method is the same as the C function OGR_G_GetGeometryType().
Reimplemented from OGRMultiSurface.
OGRErr OGRMultiPolygon::PointOnSurface | ( | OGRPoint * | poPoint | ) | const [virtual] |
This method relates to the SFCOM IMultiSurface::get_PointOnSurface() method.
NOTE: Only implemented when GEOS included in build.
poPoint | point to be set with an internal point. |
Reimplemented from OGRMultiSurface.