mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
a QgsMultiPoint/QgsMultiLineString/QgsMultiPolygon Avoids the need to have to manually do an annoying cast when we already know the geometry type
85 lines
2.6 KiB
Plaintext
85 lines
2.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/geometry/qgsmultisurface.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMultiSurface: QgsGeometryCollection
|
|
{
|
|
%Docstring
|
|
Multi surface geometry collection.
|
|
|
|
.. versionadded:: 2.10
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmultisurface.h"
|
|
%End
|
|
public:
|
|
QgsMultiSurface();
|
|
|
|
|
|
|
|
SIP_PYOBJECT surfaceN( int index ) /TypeHint="QgsSurface"/;
|
|
%Docstring
|
|
Returns the surface with the specified ``index``.
|
|
|
|
An IndexError will be raised if no surface with the specified index exists.
|
|
|
|
.. versionadded:: 3.16
|
|
%End
|
|
%MethodCode
|
|
if ( a0 < 0 || a0 >= sipCpp->numGeometries() )
|
|
{
|
|
PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
|
|
sipIsErr = 1;
|
|
}
|
|
else
|
|
{
|
|
return sipConvertFromType( sipCpp->surfaceN( a0 ), sipType_QgsSurface, NULL );
|
|
}
|
|
%End
|
|
|
|
|
|
virtual QString geometryType() const;
|
|
|
|
virtual void clear();
|
|
|
|
virtual QgsMultiSurface *clone() const /Factory/;
|
|
|
|
virtual QgsMultiSurface *toCurveType() const /Factory/;
|
|
|
|
virtual bool fromWkt( const QString &wkt );
|
|
|
|
virtual QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
|
|
|
|
virtual QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
|
|
|
|
virtual bool addGeometry( QgsAbstractGeometry *g /Transfer/ );
|
|
|
|
virtual bool insertGeometry( QgsAbstractGeometry *g /Transfer/, int index );
|
|
|
|
virtual QgsAbstractGeometry *boundary() const /Factory/;
|
|
|
|
|
|
|
|
virtual QgsMultiSurface *createEmptyWithSameType() const /Factory/;
|
|
|
|
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/geometry/qgsmultisurface.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|