#include <ogr_geometry.h>
Inheritance diagram for OGRMultiPolygon:
Public Member Functions | |
virtual OGRErr | importFromWkt (char **) |
virtual OGRErr | addGeometryDirectly (OGRGeometry *) |
double | get_Area () const |
Note that the IMultiSurface class hasn't been modelled, nor have any of it's methods.
|
Add a geometry directly to the container. Some subclasses of OGRGeometryCollection restrict the types of geometry that can be added, and may return an error. Ownership of the passed geometry is taken by the container rather than cloning as addGeometry() does. This method is the same as the C function OGR_G_AddGeometryDirectly(). There is no SFCOM analog to this method.
Reimplemented from OGRGeometryCollection. |
|
Compute area of multipolygon. The area is computed as the sum of the areas of all polygon members in this collection.
|
|
Assign geometry from well known text data. The object must have already been instantiated as the correct derived type of geometry object to match the text type. This method is used by the OGRGeometryFactory class, but not normally called by application code. This method relates to the SFCOM IWks::ImportFromWKT() method. This method is the same as the C function OGR_G_ImportFromWkt().
Reimplemented from OGRGeometryCollection. |