46     if ( dynamic_cast<const QgsLineStringV2*>( geom ) )
    52       elemMultiLineString.
appendChild( elemLineStringMember );
    56   return elemMultiLineString;
    64     if ( dynamic_cast<const QgsLineStringV2*>( geom ) )
    74   return elemMultiCurve;
    79   QString json = 
"{\"type\": \"MultiLineString\", \"coordinates\": [";
    82     if ( dynamic_cast<const QgsCurveV2*>( geom ) )
   100   if ( !dynamic_cast<QgsLineStringV2*>( g ) )
 
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)
 
QgsMultiLineStringV2 * clone() const override
Clones the geometry by performing a deep copy. 
 
bool fromWkt(const QString &wkt) override
Sets the geometry from a WKT string. 
 
void points(QgsPointSequenceV2 &pt) const override
Returns a list of points within the curve. 
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g) override
Adds a geometry and takes ownership. 
 
Multi curve geometry collection. 
 
QDomElement asGML2(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML2 representation of the geometry. 
 
static QString pointsToJSON(const QgsPointSequenceV2 &points, int precision)
Returns a geoJSON coordinates string. 
 
Abstract base class for all geometries. 
 
QgsAbstractGeometryV2 * toCurveType() const override
Returns the geometry converted to the more generic curve type QgsMultiCurveV2. 
 
QDomElement createElementNS(const QString &nsURI, const QString &qName)
 
Multi line string geometry collection. 
 
QDomElement asGML3(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML3 representation of the geometry. 
 
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. 
 
QgsWKBTypes::Type mWkbType
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g) override
Adds a geometry and takes ownership. 
 
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. 
 
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. 
 
virtual bool addGeometry(QgsAbstractGeometryV2 *g)
Adds a geometry and takes ownership. 
 
QString asJSON(int precision=17) const override
Returns a GeoJSON representation of the geometry.