Subgroup: Multi

Class: QgsMultiLineString

class qgis.core.QgsMultiLineString

Bases: qgis._core.QgsMultiCurve

Multi line string 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 Returns the geometry converted to the more generic curve type QgsMultiCurve
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
calculateBoundingBox()
childCount()
childGeometry()
childPoint()
clear(self)
clearCache()
clone(self) → QgsMultiLineString
createEmptyWithSameType(self) → QgsMultiLineString
fromCollectionWkt()
fromWkt(self, wkt: str) → bool
geometryType(self) → str
hasChildGeometries()
insertGeometry(self, g: QgsAbstractGeometry, index: int) → bool
setZMTypeFromSubGeometry()
toCurveType(self) → QgsMultiCurve

Returns the geometry converted to the more generic curve type QgsMultiCurve

Returns:the converted geometry. Caller takes ownership*
wktOmitChildType(self) → bool