16 #ifndef QGSMULTIPOINTV2_H 17 #define QGSMULTIPOINTV2_H 43 virtual int nCoordinates()
const override {
return mGeometries.size(); }
56 #endif // QGSMULTIPOINTV2_H virtual QgsAbstractGeometryV2 * boundary() const override
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
Abstract base class for all geometries.
Multi point geometry collection.
QDomElement asGML2(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML2 representation of the geometry.
QDomElement asGML3(QDomDocument &doc, int precision=17, const QString &ns="gml") const override
Returns a GML3 representation of the geometry.
QString asJSON(int precision=17) const override
Returns a GeoJSON representation of the geometry.
virtual bool fromWkt(const QString &wkt) override
Sets the geometry from a WKT string.
virtual QgsGeometryCollectionV2 * clone() const override
Clones the geometry by performing a deep copy.
virtual QString geometryType() const override
Returns a unique string representing the geometry type.
virtual bool addGeometry(QgsAbstractGeometryV2 *g)
Adds a geometry and takes ownership.
virtual bool wktOmitChildType() const override
Returns whether child type names are omitted from Wkt representations of the collection.
virtual int nCoordinates() const override
Returns the number of nodes contained in the geometry.