Class: QgsMultiPoint¶
-
class
qgis.core.
QgsMultiPoint
¶ Bases:
QgsGeometryCollection
Multi point geometry collection.
Methods
- param g
- param doc
- param doc
- rtype
QgsAbstractGeometry
Returns point at index (for geometries without child geometries - i.e.
- rtype
QgsMultiPoint
- rtype
QgsMultiPoint
Reads a collection from a WKT string.
- param wkt
- rtype
str
Returns whether the geometry has any child geometries (
False
for point / curve,True
otherwise)- param g
- param flags
- rtype
int
- param startVertex
Updates the geometry type based on whether sub geometries contain z or m values.
- rtype
QgsMultiPoint
- param id
- rtype
bool
-
addGeometry
(self, g: QgsAbstractGeometry) → bool¶ - Parameters
g (QgsAbstractGeometry) –
- Return type
bool
-
asGml2
(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) → QDomElement¶ - Parameters
doc (QDomDocument) –
precision (int = 17) –
ns (str = '') –
axisOrder (QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) –
- Return type
QDomElement
-
asGml3
(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) → QDomElement¶ - Parameters
doc (QDomDocument) –
precision (int = 17) –
ns (str = '') –
axisOrder (QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) –
- Return type
QDomElement
-
boundary
(self) → QgsAbstractGeometry¶ - Return type
-
calculateBoundingBox
(self) → QgsRectangle¶
-
childCount
(self) → int¶
-
childGeometry
(self, index: int) → QgsAbstractGeometry¶
-
childPoint
(self, index: int) → QgsPoint¶ Returns point at index (for geometries without child geometries - i.e. curve / point)
Note
used for vertex_iterator implementation
New in version 3.0.
-
clear
(self)¶
-
clearCache
(self)¶
-
clone
(self) → QgsMultiPoint¶ - Return type
-
createEmptyWithSameType
(self) → QgsMultiPoint¶ - Return type
-
fromCollectionWkt
(self, wkt: str, subtypes: object, defaultChildWkbType: str = '') → bool¶ Reads a collection from a WKT string.
-
fromWkt
(self, wkt: str) → bool¶ - Parameters
wkt (str) –
- Return type
bool
-
geometryType
(self) → str¶ - Return type
str
-
hasChildGeometries
(self) → bool¶ Returns whether the geometry has any child geometries (
False
for point / curve,True
otherwise)Note
used for vertex_iterator implementation
New in version 3.0.
-
insertGeometry
(self, g: QgsAbstractGeometry, index: int) → bool¶ - Parameters
g (QgsAbstractGeometry) –
index (int) –
- Return type
bool
-
isValid
(self, flags: int = 0) → Tuple[bool, str]¶ - Parameters
flags (int = 0) –
- Return type
Tuple[bool, str]
-
nCoordinates
(self) → int¶ - Return type
int
-
segmentLength
(self, startVertex: QgsVertexId) → float¶ - Parameters
startVertex (QgsVertexId) –
- Return type
float
-
setZMTypeFromSubGeometry
(self, subggeom: QgsAbstractGeometry, baseGeomType: QgsWkbTypes.Type)¶ Updates the geometry type based on whether sub geometries contain z or m values.
-
toCurveType
(self) → QgsMultiPoint¶ - Return type
-
vertexNumberFromVertexId
(self, id: QgsVertexId) → int¶ - Parameters
id (QgsVertexId) –
- Return type
int
-
wktOmitChildType
(self) → bool¶ - Return type
bool