Contents
How to do Delaunay triangulation in qgsgeometry?
Creates a QgsPolygonXYfrom a QPolygonF. Creates a QgsPolylineXY from a QPolygonF. Returns the Delaunay triangulation for the vertices of the geometry. Deletes a ring in polygon or multipolygon. Returns a copy of the geometry which has been densified by adding the specified number of extra nodes within each segment of the geometry.
Which is the generic container for geometry in QGIS?
A geometry is the spatial representation of a feature. Since QGIS 2.10, QgsGeometry acts as a generic container for geometry objects. QgsGeometry is implicitly shared, so making copies of geometries is inexpensive. The geometry container class can also be stored inside a QVariant object.
How does qgsgeometry create an abstract geometry object?
QgsGeometry (geom: QgsAbstractGeometry) Creates a geometry from an abstract geometry object. Ownership of geom is transferred. New in version 2.10. A geometry is the spatial representation of a feature.
How does the densification function in QGIS work?
Densifies the geometry by adding regularly placed extra nodes inside each segment so that the maximum distance between any two nodes does not exceed the specified distance. Returns a geometry representing the points making up this geometry that do not make up other.
How to return the oriented minimum bounding box in QGIS?
Returns an offset line at a given distance and side from an input line. Returns the oriented minimum bounding box for the geometry, which is the smallest (by area) rotated rectangle which fully encompasses the geometry.
How to convert single type geometry to multi type geometry?
Converts single type geometry into multitype geometry e. Converts multi type geometry into single type geometry e. Converts the geometry to straight line segments, if it is a curved geometry type. Returns the smallest convex polygon that contains all the points in the geometry. Creates a QgsPolygonXYfrom a QPolygonF.
How to merge lines in a MultiLineString geometry?
Merges any connected lines in a LineString/MultiLineString geometry and converts them to single line strings. Returns the minimal enclosing circle for the geometry. Moves the vertex at the given position number and item (first number is index 0) to the given coordinates. Returns the nearest point on this geometry to another geometry.