@@ -95,38 +95,38 @@ class QgsAbstractGeometry
95
95
virtual QString geometryType() const = 0;
96
96
%Docstring
97
97
Returns a unique string representing the geometry type.
98
- \see wkbType
99
- \see wktTypeStr
98
+ .. seealso:: wkbType
99
+ .. seealso:: wktTypeStr
100
100
:rtype: str
101
101
%End
102
102
103
103
QgsWkbTypes::Type wkbType() const;
104
104
%Docstring
105
105
Returns the WKB type of the geometry.
106
- \see geometryType
107
- \see wktTypeStr
106
+ .. seealso:: geometryType
107
+ .. seealso:: wktTypeStr
108
108
:rtype: QgsWkbTypes.Type
109
109
%End
110
110
111
111
QString wktTypeStr() const;
112
112
%Docstring
113
113
Returns the WKT type string of the geometry.
114
- \see geometryType
115
- \see wkbType
114
+ .. seealso:: geometryType
115
+ .. seealso:: wkbType
116
116
:rtype: str
117
117
%End
118
118
119
119
bool is3D() const;
120
120
%Docstring
121
121
Returns true if the geometry is 3D and contains a z-value.
122
- \see isMeasure
122
+ .. seealso:: isMeasure
123
123
:rtype: bool
124
124
%End
125
125
126
126
bool isMeasure() const;
127
127
%Docstring
128
128
Returns true if the geometry contains m values.
129
- \see is3D
129
+ .. seealso:: is3D
130
130
:rtype: bool
131
131
%End
132
132
@@ -145,25 +145,25 @@ class QgsAbstractGeometry
145
145
%Docstring
146
146
Sets the geometry from a WKB string.
147
147
After successful read the wkb argument will be at the position where the reading has stopped.
148
- \see fromWkt
148
+ .. seealso:: fromWkt
149
149
:rtype: bool
150
150
%End
151
151
152
152
virtual bool fromWkt( const QString &wkt ) = 0;
153
153
%Docstring
154
154
Sets the geometry from a WKT string.
155
- \see fromWkb
155
+ .. seealso:: fromWkb
156
156
:rtype: bool
157
157
%End
158
158
159
159
160
160
virtual QByteArray asWkb() const = 0;
161
161
%Docstring
162
162
Returns a WKB representation of the geometry.
163
- \see asWkt
164
- \see asGML2
165
- \see asGML3
166
- \see asJSON
163
+ .. seealso:: asWkt
164
+ .. seealso:: asGML2
165
+ .. seealso:: asGML3
166
+ .. seealso:: asJSON
167
167
.. versionadded:: 3.0
168
168
:rtype: QByteArray
169
169
%End
@@ -172,10 +172,10 @@ class QgsAbstractGeometry
172
172
%Docstring
173
173
Returns a WKT representation of the geometry.
174
174
\param precision number of decimal places for coordinates
175
- \see asWkb
176
- \see asGML2
177
- \see asGML3
178
- \see asJSON
175
+ .. seealso:: asWkb
176
+ .. seealso:: asGML2
177
+ .. seealso:: asGML3
178
+ .. seealso:: asJSON
179
179
:rtype: str
180
180
%End
181
181
@@ -185,10 +185,10 @@ class QgsAbstractGeometry
185
185
\param doc DOM document
186
186
\param precision number of decimal places for coordinates
187
187
\param ns XML namespace
188
- \see asWkb
189
- \see asWkt
190
- \see asGML3
191
- \see asJSON
188
+ .. seealso:: asWkb
189
+ .. seealso:: asWkt
190
+ .. seealso:: asGML3
191
+ .. seealso:: asJSON
192
192
:rtype: QDomElement
193
193
%End
194
194
@@ -198,21 +198,21 @@ class QgsAbstractGeometry
198
198
\param doc DOM document
199
199
\param precision number of decimal places for coordinates
200
200
\param ns XML namespace
201
- \see asWkb
202
- \see asWkt
203
- \see asGML2
204
- \see asJSON
201
+ .. seealso:: asWkb
202
+ .. seealso:: asWkt
203
+ .. seealso:: asGML2
204
+ .. seealso:: asJSON
205
205
:rtype: QDomElement
206
206
%End
207
207
208
208
virtual QString asJSON( int precision = 17 ) const = 0;
209
209
%Docstring
210
210
Returns a GeoJSON representation of the geometry.
211
211
\param precision number of decimal places for coordinates
212
- \see asWkb
213
- \see asWkt
214
- \see asGML2
215
- \see asGML3
212
+ .. seealso:: asWkb
213
+ .. seealso:: asWkt
214
+ .. seealso:: asGML2
215
+ .. seealso:: asGML3
216
216
:rtype: str
217
217
%End
218
218
@@ -295,8 +295,8 @@ class QgsAbstractGeometry
295
295
\param position vertex id for position of inserted vertex
296
296
\param vertex vertex to insert
297
297
:return: true if insert was successful
298
- \see moveVertex
299
- \see deleteVertex
298
+ .. seealso:: moveVertex
299
+ .. seealso:: deleteVertex
300
300
:rtype: bool
301
301
%End
302
302
@@ -306,8 +306,8 @@ class QgsAbstractGeometry
306
306
\param position vertex id for vertex to move
307
307
\param newPos new position of vertex
308
308
:return: true if move was successful
309
- \see insertVertex
310
- \see deleteVertex
309
+ .. seealso:: insertVertex
310
+ .. seealso:: deleteVertex
311
311
:rtype: bool
312
312
%End
313
313
@@ -316,32 +316,32 @@ class QgsAbstractGeometry
316
316
Deletes a vertex within the geometry
317
317
\param position vertex id for vertex to delete
318
318
:return: true if delete was successful
319
- \see insertVertex
320
- \see moveVertex
319
+ .. seealso:: insertVertex
320
+ .. seealso:: moveVertex
321
321
:rtype: bool
322
322
%End
323
323
324
324
virtual double length() const;
325
325
%Docstring
326
326
Returns the length of the geometry.
327
- \see area()
328
- \see perimeter()
327
+ .. seealso:: area()
328
+ .. seealso:: perimeter()
329
329
:rtype: float
330
330
%End
331
331
332
332
virtual double perimeter() const;
333
333
%Docstring
334
334
Returns the perimeter of the geometry.
335
- \see area()
336
- \see length()
335
+ .. seealso:: area()
336
+ .. seealso:: length()
337
337
:rtype: float
338
338
%End
339
339
340
340
virtual double area() const;
341
341
%Docstring
342
342
Returns the area of the geometry.
343
- \see length()
344
- \see perimeter()
343
+ .. seealso:: length()
344
+ .. seealso:: perimeter()
345
345
:rtype: float
346
346
%End
347
347
@@ -406,8 +406,8 @@ QgsMultiLineString -> QgsMultiCurve, QgsMultiPolygonV2 -> QgsMultiSurface
406
406
virtual int partCount() const = 0;
407
407
%Docstring
408
408
Returns count of parts contained in the geometry.
409
- \see vertexCount
410
- \see ringCount
409
+ .. seealso:: vertexCount
410
+ .. seealso:: ringCount
411
411
:rtype: int
412
412
%End
413
413
@@ -417,8 +417,8 @@ QgsMultiLineString -> QgsMultiCurve, QgsMultiPolygonV2 -> QgsMultiSurface
417
417
\param zValue initial z-value for all nodes
418
418
:return: true on success
419
419
.. versionadded:: 2.12
420
- \see dropZValue()
421
- \see addMValue()
420
+ .. seealso:: dropZValue()
421
+ .. seealso:: addMValue()
422
422
:rtype: bool
423
423
%End
424
424
@@ -428,17 +428,17 @@ QgsMultiLineString -> QgsMultiCurve, QgsMultiPolygonV2 -> QgsMultiSurface
428
428
\param mValue initial m-value for all nodes
429
429
:return: true on success
430
430
.. versionadded:: 2.12
431
- \see dropMValue()
432
- \see addZValue()
431
+ .. seealso:: dropMValue()
432
+ .. seealso:: addZValue()
433
433
:rtype: bool
434
434
%End
435
435
436
436
virtual bool dropZValue() = 0;
437
437
%Docstring
438
438
Drops any z-dimensions which exist in the geometry.
439
439
:return: true if Z values were present and have been removed
440
- \see addZValue()
441
- \see dropMValue()
440
+ .. seealso:: addZValue()
441
+ .. seealso:: dropMValue()
442
442
.. versionadded:: 2.14
443
443
:rtype: bool
444
444
%End
@@ -447,8 +447,8 @@ QgsMultiLineString -> QgsMultiCurve, QgsMultiPolygonV2 -> QgsMultiSurface
447
447
%Docstring
448
448
Drops any measure values which exist in the geometry.
449
449
:return: true if m-values were present and have been removed
450
- \see addMValue()
451
- \see dropZValue()
450
+ .. seealso:: addMValue()
451
+ .. seealso:: dropZValue()
452
452
.. versionadded:: 2.14
453
453
:rtype: bool
454
454
%End
0 commit comments