GDAL
|
A collection of OGRCurve. More...
#include <ogr_geometry.h>
Public Member Functions | |
OGRMultiCurve () | |
Create an empty multi curve collection. | |
virtual const char * | getGeometryName () const |
Fetch WKT name for geometry type. | |
virtual OGRwkbGeometryType | getGeometryType () const |
Fetch geometry type. | |
virtual OGRErr | importFromWkt (char **) |
Assign geometry from well known text data. | |
virtual OGRErr | exportToWkt (char **, OGRwkbVariant=wkbVariantOldOgc) const |
Convert a geometry into well known text format. | |
virtual int | getDimension () const |
Get the dimension of this object. | |
virtual OGRBoolean | hasCurveGeometry (int bLookForNonLinear=FALSE) const |
Returns if this geometry is or has curve geometry. | |
Static Public Member Functions | |
static OGRMultiLineString * | CastToMultiLineString (OGRMultiCurve *poMC) |
Cast to multi line string. | |
Protected Member Functions | |
virtual OGRBoolean | isCompatibleSubType (OGRwkbGeometryType) const |
Static Protected Member Functions | |
static OGRErr | addCurveDirectlyFromWkt (OGRGeometry *poSelf, OGRCurve *poCurve) |
A collection of OGRCurve.
OGRMultiLineString * OGRMultiCurve::CastToMultiLineString | ( | OGRMultiCurve * | poMC | ) | [static] |
Cast to multi line string.
This method should only be called if the multicurve actually only contains instances of OGRLineString. This can be verified if hasCurveGeometry(TRUE) returns FALSE. It is not intended to approximate circular curves. For that use getLinearGeometry().
The passed in geometry is consumed and a new one returned (or NULL in case of failure).
poMS | the input geometry - ownership is passed to the method. |
OGRErr OGRMultiCurve::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 OGRGeometryCollection.
Reimplemented in OGRMultiLineString.
int OGRMultiCurve::getDimension | ( | ) | const [virtual] |
Get the dimension of this object.
This method corresponds to the SFCOM IGeometry::GetDimension() method. It indicates the dimension of the object, but does not indicate the dimension of the underlying space (as indicated by OGRGeometry::getCoordinateDimension()).
This method is the same as the C function OGR_G_GetDimension().
Reimplemented from OGRGeometryCollection.
const char * OGRMultiCurve::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.
Reimplemented in OGRMultiLineString.
OGRwkbGeometryType OGRMultiCurve::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.
Reimplemented in OGRMultiLineString.
OGRBoolean OGRMultiCurve::hasCurveGeometry | ( | int | bLookForNonLinear = FALSE | ) | const [virtual] |
Returns if this geometry is or has curve geometry.
Returns if a geometry is, contains or may contain a CIRCULARSTRING, COMPOUNDCURVE, CURVEPOLYGON, MULTICURVE or MULTISURFACE.
If bLookForNonLinear is set to TRUE, it will be actually looked if the geometry or its subgeometries are or contain a non-linear geometry in them. In which case, if the method returns TRUE, it means that getLinearGeometry() would return an approximate version of the geometry. Otherwise, getLinearGeometry() would do a conversion, but with just converting container type, like COMPOUNDCURVE -> LINESTRING, MULTICURVE -> MULTILINESTRING or MULTISURFACE -> MULTIPOLYGON, resulting in a "loss-less" conversion.
This method is the same as the C function OGR_G_HasCurveGeometry().
bLookForNonLinear | set it to TRUE to check if the geometry is or contains a CIRCULARSTRING. |
Reimplemented from OGRGeometryCollection.
Reimplemented in OGRMultiLineString.
OGRErr OGRMultiCurve::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.