Subgroup: other
Class: QgsCircularString¶
-
class
qgis.core.
QgsCircularString
¶ Bases:
qgis._core.QgsCurve
Circular string geometry typeNew in version 2.10: Methods
addMValue
addToPainterPath
addZValue
asGml2
asGml3
asJson
asWkb
asWkt
calculateBoundingBox
childCount
childGeometry
childPoint
clear
clearCache
clone
closestSegment
createEmptyWithSameType
curveToLine
deleteVertex
dimension
draw
drawAsPolygon
dropMValue
dropZValue
endPoint
equals
fromWkb
fromWkt
geometryType
hasChildGeometries
hasCurvedSegments
insertVertex
isEmpty
length
moveVertex
numPoints
pointAt
pointN
Returns the point at index i within the circular string. points
removeDuplicateNodes
reversed
segmentLength
setPoints
Sets the circular string’s points setZMTypeFromSubGeometry
snappedToGrid
startPoint
sumUpArea
transform
transform(self, t: QTransform, zTranslate: float = 0, zScale: float = 1, mTranslate: float = 0, mScale: float = 1) vertexAngle
xAt
yAt
Signals
Attributes
-
addMValue
(self, mValue: float = 0) → bool¶
-
addToPainterPath
(self, path: QPainterPath)¶
-
addZValue
(self, zValue: float = 0) → 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¶
-
asWkb
(self) → QByteArray¶
-
asWkt
(self, precision: int = 17) → str¶
-
calculateBoundingBox
(self) → QgsRectangle¶
-
childCount
()¶
-
childGeometry
()¶
-
childPoint
()¶
-
clear
(self)¶
-
clearCache
()¶
-
clone
(self) → QgsCircularString¶
-
closestSegment
(self, pt: QgsPoint, epsilon: float = 4*DBL_EPSILON) → Tuple[float, QgsPoint, QgsVertexId, int]¶
-
createEmptyWithSameType
(self) → QgsCircularString¶
-
curveToLine
(self, tolerance: float = M_PI_2/90, toleranceType: QgsAbstractGeometry.SegmentationToleranceType = QgsAbstractGeometry.MaximumAngle) → QgsLineString¶
-
deleteVertex
(self, position: QgsVertexId) → bool¶
-
dimension
(self) → int¶
-
draw
(self, p: QPainter)¶
-
drawAsPolygon
(self, p: QPainter)¶
-
dropMValue
(self) → bool¶
-
dropZValue
(self) → bool¶
-
endPoint
(self) → QgsPoint¶
-
equals
(self, other: QgsCurve) → bool¶
-
fromWkb
(self, wkb: QgsConstWkbPtr) → bool¶
-
fromWkt
(self, wkt: str) → bool¶
-
geometryType
(self) → str¶
-
hasChildGeometries
()¶
-
hasCurvedSegments
(self) → bool¶
-
insertVertex
(self, position: QgsVertexId, vertex: QgsPoint) → bool¶
-
isEmpty
(self) → bool¶
-
length
(self) → float¶
-
moveVertex
(self, position: QgsVertexId, newPos: QgsPoint) → bool¶
-
numPoints
(self) → int¶
-
pointAt
(self, node: int, point: QgsPoint) → Tuple[bool, QgsVertexId.VertexType]¶
-
pointN
(self, i: int) → QgsPoint¶ Returns the point at index i within the circular string.
-
points
(self) → object¶
-
removeDuplicateNodes
(self, epsilon: float = 4*DBL_EPSILON, useZValues: bool = False) → bool¶
-
reversed
(self) → QgsCircularString¶
-
segmentLength
(self, startVertex: QgsVertexId) → float¶
-
setPoints
(self, points: object)¶ Sets the circular string’s points
-
setZMTypeFromSubGeometry
()¶
-
snappedToGrid
(self, hSpacing: float, vSpacing: float, dSpacing: float = 0, mSpacing: float = 0) → QgsCircularString¶
-
startPoint
(self) → QgsPoint¶
-
sumUpArea
(self) → float¶
-
transform
(self, ct: QgsCoordinateTransform, d: QgsCoordinateTransform.TransformDirection = QgsCoordinateTransform.ForwardTransform, transformZ: bool = False)¶ transform(self, t: QTransform, zTranslate: float = 0, zScale: float = 1, mTranslate: float = 0, mScale: float = 1)
-
vertexAngle
(self, vertex: QgsVertexId) → float¶
-
xAt
(self, index: int) → float¶
-
yAt
(self, index: int) → float¶
-