Subgroup: other
Class: QgsSurface¶
-
class
qgis.core.
QgsSurface
¶ Bases:
qgis._core.QgsAbstractGeometry
QgsSurface(QgsSurface)
Methods
addMValue
Adds a measure to the geometry, initialized to a preset value. addZValue
Adds a z-dimension to the geometry, initialized to a preset value. adjacentVertices
Returns the vertices adjacent to a specified vertex
within a geometry.area
Returns the area of the geometry. asGml2
Returns a GML2 representation of the geometry. asGml3
Returns a GML3 representation of the geometry. asJson
Returns a GeoJSON representation of the geometry. asWkb
Returns a WKB representation of the geometry. asWkt
Returns a WKT representation of the geometry. boundary
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the geometry). boundingBox
Returns the minimal bounding box for the geometry calculateBoundingBox
centroid
Returns the centroid of the geometry childCount
childGeometry
childPoint
clear
Clears the geometry, ie reset it to a null geometry clearCache
clone
Clones the geometry by performing a deep copy closestSegment
Searches for the closest segment of the geometry to a given point. convertTo
Converts the geometry to a specified type. coordinateSequence
Retrieves the sequence of geometries, rings and nodes. createEmptyWithSameType
deleteVertex
Deletes a vertex within the geometry dimension
Returns the inherent dimension of the geometry. draw
Draws the geometry using the specified QPainter. dropMValue
Drops any measure values which exist in the geometry. dropZValue
Drops any z-dimensions which exist in the geometry. fromWkb
Sets the geometry from a WKB string. fromWkt
Sets the geometry from a WKT string. geometryType
Returns a unique string representing the geometry type. hasChildGeometries
hasCurvedSegments
Returns true if the geometry contains curved segments insertVertex
Inserts a vertex into the geometry is3D
Returns true if the geometry is 3D and contains a z-value. isEmpty
Returns true if the geometry is empty isMeasure
Returns true if the geometry contains m values. length
Returns the length of the geometry. moveVertex
Moves a vertex within the geometry nCoordinates
Returns the number of nodes contained in the geometry nextVertex
Returns next vertex id and coordinates partCount
Returns count of parts contained in the geometry. perimeter
Returns the perimeter of the geometry. removeDuplicateNodes
Removes duplicate nodes from the geometry, wherever removing the nodes does not result in a degenerate geometry. ringCount
Returns the number of rings of which this geometry is built. segmentLength
Returns the length of the segment of the geometry which begins at startVertex
.segmentize
Returns a version of the geometry without curves. setZMTypeFromSubGeometry
snappedToGrid
Makes a new geometry with all the points or vertices snapped to the closest point of the grid. surfaceToPolygon
Get a polygon representation of this surface. toCurveType
Returns the geometry converted to the more generic curve type. transform
Transforms the geometry using a coordinate transform vertexAngle
Returns approximate angle at a vertex. vertexAt
Returns the point corresponding to a specified vertex id vertexCount
Returns the number of vertices of which this geometry is built. vertexNumberFromVertexId
Returns the vertex number corresponding to a vertex id
.vertices
Returns Java-style iterator for traversal of vertices of the geometry wkbType
Returns the WKB type of the geometry. wktTypeStr
Returns the WKT type string of the geometry. Attributes
MaximumAngle
MaximumDifference
-
boundingBox
(self) → QgsRectangle¶ Returns the minimal bounding box for the geometry
-
calculateBoundingBox
()¶
-
childCount
()¶
-
childGeometry
()¶
-
childPoint
()¶
-
clearCache
(self)¶
-
createEmptyWithSameType
()¶
-
hasChildGeometries
()¶
-
setZMTypeFromSubGeometry
()¶
-
surfaceToPolygon
(self) → QgsPolygon¶ Get a polygon representation of this surface. Ownership is transferred to the caller.
-