/
qgsmultisurface.sip.in
87 lines (57 loc) · 2.69 KB
/
qgsmultisurface.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/************************************************************************
* 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(signature="appended")
Multi surface geometry collection.
.. versionadded:: 2.10
%End
%TypeHeaderCode
#include "qgsmultisurface.h"
%End
public:
QgsMultiSurface() /HoldGIL/;
%Docstring
Constructor for an empty multisurface geometry.
%End
SIP_PYOBJECT surfaceN( int index ) /TypeHint="QgsSurface"/;
%Docstring
Returns the surface with the specified ``index``.
:raises IndexError: 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 /HoldGIL/;
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 *
************************************************************************/