Class: QgsMultiPoint

class qgis.core.QgsMultiPoint

Bases: QgsGeometryCollection

Multi point geometry collection.

Methods

addGeometry

param g

asGml2

param doc

asGml3

param doc

asJson

param precision

boundary

rtype

QgsAbstractGeometry

calculateBoundingBox

childCount

childGeometry

childPoint

clear

clearCache

clone

rtype

QgsMultiPoint

createEmptyWithSameType

rtype

QgsMultiPoint

fromCollectionWkt

fromWkt

param wkt

geometryType

rtype

str

hasChildGeometries

insertGeometry

param g

nCoordinates

rtype

int

segmentLength

param startVertex

setZMTypeFromSubGeometry

toCurveType

rtype

QgsMultiPoint

vertexNumberFromVertexId

param id

wktOmitChildType

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

asJson(self, precision: int = 17) → str
Parameters

precision (int = 17) –

Return type

str

boundary(self) → QgsAbstractGeometry
Return type

QgsAbstractGeometry

calculateBoundingBox()
childCount()
childGeometry()
childPoint()
clear(self)
clearCache()
clone(self) → QgsMultiPoint
Return type

QgsMultiPoint

createEmptyWithSameType(self) → QgsMultiPoint
Return type

QgsMultiPoint

fromCollectionWkt()
fromWkt(self, wkt: str) → bool
Parameters

wkt (str) –

Return type

bool

geometryType(self) → str
Return type

str

hasChildGeometries()
insertGeometry(self, g: QgsAbstractGeometry, index: int) → bool
Parameters
Return type

bool

nCoordinates(self) → int
Return type

int

segmentLength(self, startVertex: QgsVertexId) → float
Parameters

startVertex (QgsVertexId) –

Return type

float

setZMTypeFromSubGeometry()
toCurveType(self) → QgsMultiPoint
Return type

QgsMultiPoint

vertexNumberFromVertexId(self, id: QgsVertexId) → int
Parameters

id (QgsVertexId) –

Return type

int

wktOmitChildType(self) → bool
Return type

bool