#include <ogr_geometry.h>
Public Member Functions | |
virtual const char * | getGeometryName () const |
Fetch WKT name for geometry type. | |
virtual OGRwkbGeometryType | getGeometryType () const |
Fetch geometry type. | |
virtual OGRGeometry * | clone () const |
Make a copy of this object. | |
virtual OGRErr | importFromWkt (char **) |
Assign geometry from well known text data. | |
virtual OGRErr | exportToWkt (char **) const |
Convert a geometry into well known text format. | |
virtual OGRErr | addGeometryDirectly (OGRGeometry *) |
Add a geometry directly to the container. |
OGRErr OGRMultiPoint::addGeometryDirectly | ( | OGRGeometry * | poNewGeom | ) | [virtual] |
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.
poNewGeom | geometry to add to the container. |
Reimplemented from OGRGeometryCollection.
References OGRGeometry::getGeometryType(), wkbPoint, and wkbPoint25D.
Referenced by OGRGeometryFactory::forceToMultiPoint(), and importFromWkt().
OGRGeometry * OGRMultiPoint::clone | ( | ) | const [virtual] |
Make a copy of this object.
This method relates to the SFCOM IGeometry::clone() method.
This method is the same as the C function OGR_G_Clone().
Reimplemented from OGRGeometryCollection.
References OGRGeometryCollection::addGeometry(), OGRGeometry::assignSpatialReference(), OGRGeometryCollection::getGeometryRef(), OGRGeometryCollection::getNumGeometries(), and OGRGeometry::getSpatialReference().
OGRErr OGRMultiPoint::exportToWkt | ( | char ** | ppszDstText | ) | 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. |
Reimplemented from OGRGeometryCollection.
References OGRGeometry::getCoordinateDimension(), getGeometryName(), OGRGeometryCollection::getGeometryRef(), OGRGeometryCollection::getNumGeometries(), OGRPoint::getX(), OGRPoint::getY(), OGRPoint::getZ(), OGRPoint::IsEmpty(), and OGRGeometryCollection::IsEmpty().
const char * OGRMultiPoint::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 OGRGeometryCollection.
Referenced by exportToWkt(), and importFromWkt().
OGRwkbGeometryType OGRMultiPoint::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 OGRGeometryCollection.
References OGRGeometry::getCoordinateDimension(), wkbMultiPoint, and wkbMultiPoint25D.
OGRErr OGRMultiPoint::importFromWkt | ( | char ** | ppszInput | ) | [virtual] |
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().
ppszInput | pointer to a pointer to the source text. The pointer is updated to pointer after the consumed text. |
Reimplemented from OGRGeometryCollection.
References addGeometryDirectly(), OGRGeometryCollection::empty(), and getGeometryName().