50     if ( dynamic_cast<const QgsSurfaceV2*>( geom ) )
    62   return elemMultiPolygon;
    70     if ( dynamic_cast<const QgsSurfaceV2*>( geom ) )
    78   return elemMultiSurface;
    84   QString json = 
"{\"type\": \"MultiPolygon\", \"coordinates\": [";
    87     if ( dynamic_cast<const QgsSurfaceV2*>( geom ) )
    95       exteriorLineString->
points( exteriorPts );
    97       delete exteriorLineString;
   103         interiorLineString->
points( interiorPts );
   105         delete interiorLineString;
   127   if ( !dynamic_cast<QgsSurfaceV2*>( g ) )
 QgsMultiSurfaceV2 * clone() const override
Clones the geometry by performing a deep copy. 
 
const QgsCurveV2 * exteriorRing() const
 
int numGeometries() const
Returns the number of geometries within the collection. 
 
const QgsCurveV2 * interiorRing(int i) const
 
QDomElement asGML2(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML2 representation of the geometry. 
 
QDomNode appendChild(const QDomNode &newChild)
 
void points(QgsPointSequenceV2 &pt) const override
Returns a list of points within the curve. 
 
Multi curve geometry collection. 
 
bool fromWkt(const QString &wkt) override
Sets the geometry from a WKT string. 
 
static QString pointsToJSON(const QgsPointSequenceV2 &points, int precision)
Returns a geoJSON coordinates string. 
 
Abstract base class for all geometries. 
 
QDomElement createElementNS(const QString &nsURI, const QString &qName)
 
virtual QgsAbstractGeometryV2 * boundary() const override
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
 
Line string geometry type, with support for z-dimension and m-values. 
 
QDomElement asGML3(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML3 representation of the geometry. 
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g) override
Adds a geometry and takes ownership. 
 
QgsWKBTypes::Type mWkbType
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g) override
Adds a geometry and takes ownership. 
 
Multi surface geometry collection. 
 
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
 
void setZMTypeFromSubGeometry(const QgsAbstractGeometryV2 *subggeom, QgsWKBTypes::Type baseGeomType)
Updates the geometry type based on whether sub geometries contain z or m values. 
 
virtual QDomElement asGML3(QDomDocument &doc, int precision=17, const QString &ns="gml") const =0
Returns a GML3 representation of the geometry. 
 
QVector< QgsAbstractGeometryV2 *> mGeometries
 
const T & at(int i) const
 
bool fromCollectionWkt(const QString &wkt, const QList< QgsAbstractGeometryV2 *> &subtypes, const QString &defaultChildWkbType=QString())
Reads a collection from a WKT string. 
 
QDomElement asGML2(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML2 representation of the geometry. 
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g)
Adds a geometry and takes ownership. 
 
virtual QgsLineStringV2 * curveToLine(double tolerance=M_PI_2/90, SegmentationToleranceType toleranceType=MaximumAngle) const =0
Returns a new line string geometry corresponding to a segmentized approximation of the curve...
 
Curve polygon geometry type. 
 
QString asJSON(int precision=17) const override
Returns a GeoJSON representation of the geometry. 
 
int numInteriorRings() const