Subgroup: Multi
Class: QgsMultiCurve¶
-
class
qgis.core.
QgsMultiCurve
¶ Bases:
qgis._core.QgsGeometryCollection
Multi curve geometry collection.
New in version 2.10: Methods
addGeometry
addMValue
addZValue
adjacentVertices
area
asGml2
asGml3
asJson
asWkb
asWkt
boundary
boundingBox
calculateBoundingBox
centroid
Returns the centroid of the geometry childCount
childGeometry
childPoint
clear
clearCache
clone
closestSegment
convertTo
Converts the geometry to a specified type. coordinateSequence
createEmptyWithSameType
deleteVertex
dimension
draw
dropMValue
dropZValue
fromCollectionWkt
fromWkb
fromWkt
geometryN
Returns a geometry from within the collection. geometryType
hasChildGeometries
hasCurvedSegments
insertGeometry
insertVertex
is3D
Returns true if the geometry is 3D and contains a z-value. isEmpty
isMeasure
Returns true if the geometry contains m values. length
moveVertex
nCoordinates
nextVertex
numGeometries
Returns the number of geometries within the collection. partCount
perimeter
removeDuplicateNodes
removeGeometry
Removes a geometry from the collection. reversed
Returns a copy of the multi curve, where each component curve has had its line direction reversed. ringCount
segmentLength
segmentize
Returns a geometry without curves. setZMTypeFromSubGeometry
snappedToGrid
toCurveType
transform
transform(self, t: QTransform, zTranslate: float = 0, zScale: float = 1, mTranslate: float = 0, mScale: float = 1) vertexAngle
vertexAt
vertexCount
vertexNumberFromVertexId
vertices
Returns Java-style iterator for traversal of vertices of the geometry wkbType
Returns the WKB type of the geometry. wktOmitChildType
wktTypeStr
Returns the WKT type string of the geometry. Attributes
MaximumAngle
MaximumDifference
-
addGeometry
(self, g: QgsAbstractGeometry) → bool¶
-
asGml2
(self, doc: QDomDocument, precision: int = 17, ns: str = '') → QDomElement¶
-
asGml3
(self, doc: QDomDocument, precision: int = 17, ns: str = '') → QDomElement¶
-
asJson
(self, precision: int = 17) → str¶
-
boundary
(self) → QgsAbstractGeometry¶
-
calculateBoundingBox
()¶
-
childCount
()¶
-
childGeometry
()¶
-
childPoint
()¶
-
clear
(self)¶
-
clearCache
()¶
-
clone
(self) → QgsMultiCurve¶
-
createEmptyWithSameType
(self) → QgsMultiCurve¶
-
fromCollectionWkt
()¶
-
fromWkt
(self, wkt: str) → bool¶
-
geometryType
(self) → str¶
-
hasChildGeometries
()¶
-
insertGeometry
(self, g: QgsAbstractGeometry, index: int) → bool¶
-
reversed
(self) → QgsMultiCurve¶ Returns a copy of the multi curve, where each component curve has had its line direction reversed.
New in version 2.14.
-
setZMTypeFromSubGeometry
()¶
-
toCurveType
(self) → QgsMultiCurve¶
-
wktOmitChildType
()¶
-