QGIS/python/core/geometry/qgsmultilinestring.sip

31 lines
1.0 KiB
Plaintext
Raw Normal View History

2016-08-06 11:01:42 +02:00
class QgsMultiLineString: public QgsMultiCurve
2015-05-15 15:41:56 +02:00
{
%TypeHeaderCode
#include <qgsmultilinestring.h>
2015-05-15 15:41:56 +02:00
%End
public:
virtual QString geometryType() const;
2016-08-06 11:01:42 +02:00
virtual QgsMultiLineString* clone() const;
2015-05-15 15:41:56 +02:00
bool fromWkt( const QString& wkt );
2016-02-14 03:50:23 +01:00
// inherited: int wkbSize() const;
// inherited: unsigned char* asWkb( int& binarySize ) const;
// inherited: QString asWkt( int precision = 17 ) const;
2015-05-15 15:41:56 +02:00
QDomElement asGML2( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
QDomElement asGML3( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
QString asJSON( int precision = 17 ) const;
2015-07-29 11:52:14 +02:00
/** Adds a geometry and takes ownership. Returns true in case of success*/
2016-09-05 17:01:48 +02:00
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );
2016-08-06 11:01:42 +02:00
/** Returns the geometry converted to the more generic curve type QgsMultiCurve
2016-04-29 11:53:34 +02:00
@return the converted geometry. Caller takes ownership*/
2016-08-06 11:01:42 +02:00
QgsAbstractGeometry* toCurveType() const /Factory/;
2016-04-29 11:53:34 +02:00
protected:
virtual bool wktOmitChildType() const;
2015-05-15 15:41:56 +02:00
};