QGIS/python/core/auto_generated/geometry/qgsmultilinestring.sip.in

77 lines
2.6 KiB
Plaintext
Raw Normal View History

2017-04-27 07:55:22 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geometry/qgsmultilinestring.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMultiLineString: QgsMultiCurve
2015-05-15 15:41:56 +02:00
{
2017-04-27 07:55:22 +02:00
%Docstring
Multi line string geometry collection.
2017-12-15 10:36:55 -04:00
2017-04-27 07:55:22 +02:00
.. versionadded:: 2.10
2015-05-15 15:41:56 +02:00
%End
2017-04-27 07:55:22 +02:00
%TypeHeaderCode
#include "qgsmultilinestring.h"
%End
2015-05-15 15:41:56 +02:00
public:
2017-04-27 07:55:22 +02:00
QgsMultiLineString();
2015-05-15 15:41:56 +02:00
virtual QString geometryType() const;
2017-04-27 07:55:22 +02:00
virtual QgsMultiLineString *clone() const /Factory/;
virtual void clear();
2017-04-27 07:55:22 +02:00
virtual bool fromWkt( const QString &wkt );
2015-05-15 15:41:56 +02:00
virtual QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
2015-05-15 15:41:56 +02:00
virtual QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
2017-04-27 07:55:22 +02:00
virtual bool addGeometry( QgsAbstractGeometry *g /Transfer/ );
virtual bool insertGeometry( QgsAbstractGeometry *g /Transfer/, int index );
2017-04-27 07:55:22 +02:00
virtual QgsMultiCurve *toCurveType() const /Factory/;
2017-04-27 07:55:22 +02:00
%Docstring
2017-12-19 11:43:52 -04:00
Returns the geometry converted to the more generic curve type :py:class:`QgsMultiCurve`
2017-12-15 10:36:55 -04:00
2017-04-27 07:55:22 +02:00
:return: the converted geometry. Caller takes ownership*
%End
2016-04-29 11:53:34 +02:00
virtual QgsMultiLineString *createEmptyWithSameType() const /Factory/;
SIP_PYOBJECT __repr__();
%MethodCode
QString wkt = sipCpp->asWkt();
if ( wkt.length() > 1000 )
wkt = wkt.left( 1000 ) + QStringLiteral( "..." );
QString str = QStringLiteral( "<QgsMultiLineString: %1>" ).arg( wkt );
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End
protected:
virtual bool wktOmitChildType() const;
2015-05-15 15:41:56 +02:00
};
2017-04-27 07:55:22 +02:00
2017-09-25 14:20:39 +10:00
2017-04-27 07:55:22 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geometry/qgsmultilinestring.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/