|
| QgsGeos (const QgsAbstractGeometry *geometry, double precision=0) |
| GEOS geometry engine constructor. More...
|
|
double | area (QString *errorMsg=nullptr) const override |
|
QgsAbstractGeometry * | buffer (double distance, int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle, double miterLimit, QString *errorMsg=nullptr) const override |
| Buffers a geometry. More...
|
|
QgsAbstractGeometry * | buffer (double distance, int segments, QString *errorMsg=nullptr) const override |
|
QgsPoint * | centroid (QString *errorMsg=nullptr) const override |
| Calculates the centroid of this. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | clip (const QgsRectangle &rectangle, QString *errorMsg=nullptr) const |
| Performs a fast, non-robust intersection between the geometry and a rectangle. More...
|
|
QgsGeometry | closestPoint (const QgsGeometry &other, QString *errorMsg=nullptr) const |
| Returns the closest point on the geometry to the other geometry. More...
|
|
QgsAbstractGeometry * | combine (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the combination of this and geom. More...
|
|
QgsAbstractGeometry * | combine (const QVector< QgsAbstractGeometry * > &geomList, QString *errorMsg, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the combination of this and geometries. More...
|
|
QgsAbstractGeometry * | combine (const QVector< QgsGeometry > &, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the combination of this and geometries. More...
|
|
QgsAbstractGeometry * | concaveHull (double targetPercent, bool allowHoles=false, QString *errorMsg=nullptr) const |
| Returns a possibly concave geometry that encloses the input geometry. More...
|
|
bool | contains (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom contains this. More...
|
|
bool | contains (double x, double y, QString *errorMsg=nullptr) const |
| Returns true if the geometry contains the point at (x, y). More...
|
|
QgsAbstractGeometry * | convexHull (QString *errorMsg=nullptr) const override |
| Calculate the convex hull of this. More...
|
|
bool | crosses (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom crosses this. More...
|
|
QgsGeometry | delaunayTriangulation (double tolerance=0.0, bool edgesOnly=false, QString *errorMsg=nullptr) const |
| Returns the Delaunay triangulation for the vertices of the geometry. More...
|
|
QgsAbstractGeometry * | difference (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the difference of this and geom. More...
|
|
bool | disjoint (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom is disjoint from this. More...
|
|
double | distance (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Calculates the distance between this and geom. More...
|
|
double | distance (double x, double y, QString *errorMsg=nullptr) const |
| Returns the minimum distance from the geometry to the point at (x, y). More...
|
|
bool | distanceWithin (const QgsAbstractGeometry *geom, double maxdistance, QString *errorMsg=nullptr) const override |
| Checks if geom is within maxdistance distance from this geometry. More...
|
|
QgsAbstractGeometry * | envelope (QString *errorMsg=nullptr) const override |
|
double | frechetDistance (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const |
| Returns the Fréchet distance between this geometry and geom, restricted to discrete points for both geometries. More...
|
|
double | frechetDistanceDensify (const QgsAbstractGeometry *geom, double densifyFraction, QString *errorMsg=nullptr) const |
| Returns the Fréchet distance between this geometry and geom, restricted to discrete points for both geometries. More...
|
|
void | geometryChanged () override |
| Should be called whenever the geometry associated with the engine has been modified and the engine must be updated to suit. More...
|
|
double | hausdorffDistance (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const |
| Returns the Hausdorff distance between this geometry and geom. More...
|
|
double | hausdorffDistanceDensify (const QgsAbstractGeometry *geom, double densifyFraction, QString *errorMsg=nullptr) const |
| Returns the Hausdorff distance between this geometry and geom. More...
|
|
QgsAbstractGeometry * | interpolate (double distance, QString *errorMsg=nullptr) const override |
|
QgsAbstractGeometry * | intersection (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the intersection of this and geom. More...
|
|
bool | intersects (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom intersects this. More...
|
|
bool | isEmpty (QString *errorMsg=nullptr) const override |
|
bool | isEqual (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if this is equal to geom. More...
|
|
bool | isSimple (QString *errorMsg=nullptr) const override |
| Determines whether the geometry is simple (according to OGC definition). More...
|
|
bool | isValid (QString *errorMsg=nullptr, bool allowSelfTouchingHoles=false, QgsGeometry *errorLoc=nullptr) const override |
| Returns true if the geometry is valid. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | largestEmptyCircle (double tolerance, const QgsAbstractGeometry *boundary=nullptr, QString *errorMsg=nullptr) const |
| Constructs the Largest Empty Circle for a set of obstacle geometries, up to a specified tolerance. More...
|
|
double | length (QString *errorMsg=nullptr) const override |
|
double | lineLocatePoint (const QgsPoint &point, QString *errorMsg=nullptr) const |
| Returns a distance representing the location along this linestring of the closest point on this linestring geometry to the specified point. More...
|
|
double | lineLocatePoint (double x, double y, QString *errorMsg=nullptr) const |
| Returns a distance representing the location along this linestring of the closest point on this linestring geometry to the point at (x, y). More...
|
|
std::unique_ptr< QgsAbstractGeometry > | makeValid (Qgis::MakeValidMethod method=Qgis::MakeValidMethod::Linework, bool keepCollapsed=false, QString *errorMsg=nullptr) const |
| Repairs the geometry using GEOS make valid routine. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | maximumInscribedCircle (double tolerance, QString *errorMsg=nullptr) const |
| Returns the maximum inscribed circle. More...
|
|
QgsGeometry | mergeLines (QString *errorMsg=nullptr) const |
| Merges any connected lines in a LineString/MultiLineString geometry and converts them to single line strings. More...
|
|
double | minimumClearance (QString *errorMsg=nullptr) const |
| Computes the minimum clearance of a geometry. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | minimumClearanceLine (QString *errorMsg=nullptr) const |
| Returns a LineString whose endpoints define the minimum clearance of a geometry. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | minimumWidth (QString *errorMsg=nullptr) const |
| Returns a linestring geometry which represents the minimum diameter of the geometry. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | node (QString *errorMsg=nullptr) const |
| Returns a (Multi)LineString representing the fully noded version of a collection of linestrings. More...
|
|
QgsAbstractGeometry * | offsetCurve (double distance, int segments, Qgis::JoinStyle joinStyle, double miterLimit, QString *errorMsg=nullptr) const override |
| Offsets a curve. More...
|
|
bool | overlaps (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom overlaps this. More...
|
|
QgsPoint * | pointOnSurface (QString *errorMsg=nullptr) const override |
| Calculate a point that is guaranteed to be on the surface of this. More...
|
|
void | prepareGeometry () override |
| Prepares the geometry, so that subsequent calls to spatial relation methods are much faster. More...
|
|
QString | relate (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Returns the Dimensional Extended 9 Intersection Model (DE-9IM) representation of the relationship between the geometries. More...
|
|
bool | relatePattern (const QgsAbstractGeometry *geom, const QString &pattern, QString *errorMsg=nullptr) const override |
| Tests whether two geometries are related by a specified Dimensional Extended 9 Intersection Model (DE-9IM) pattern. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | reshapeGeometry (const QgsLineString &reshapeWithLine, EngineOperationResult *errorCode, QString *errorMsg=nullptr) const |
| Reshapes the geometry using a line. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | sharedPaths (const QgsAbstractGeometry *other, QString *errorMsg=nullptr) const |
| Find paths shared between the two given lineal geometries (this and other). More...
|
|
QgsGeometry | shortestLine (const QgsAbstractGeometry *other, QString *errorMsg=nullptr) const |
| Returns the shortest line joining this geometry to the other geometry. More...
|
|
QgsGeometry | shortestLine (const QgsGeometry &other, QString *errorMsg=nullptr) const |
| Returns the shortest line joining this geometry to the other geometry. More...
|
|
QgsAbstractGeometry * | simplify (double tolerance, QString *errorMsg=nullptr) const override |
|
std::unique_ptr< QgsAbstractGeometry > | singleSidedBuffer (double distance, int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle, double miterLimit, QString *errorMsg=nullptr) const |
| Returns a single sided buffer for a geometry. More...
|
|
EngineOperationResult | splitGeometry (const QgsLineString &splitLine, QVector< QgsGeometry > &newGeometries, bool topological, QgsPointSequence &topologyTestPoints, QString *errorMsg=nullptr, bool skipIntersectionCheck=false) const override |
| Splits this geometry according to a given line. More...
|
|
std::unique_ptr< QgsAbstractGeometry > | subdivide (int maxNodes, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const |
| Subdivides the geometry. More...
|
|
QgsAbstractGeometry * | symDifference (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const override |
| Calculate the symmetric difference of this and geom. More...
|
|
bool | touches (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom touches this. More...
|
|
QgsGeometry | voronoiDiagram (const QgsAbstractGeometry *extent=nullptr, double tolerance=0.0, bool edgesOnly=false, QString *errorMsg=nullptr) const |
| Creates a Voronoi diagram for the nodes contained within the geometry. More...
|
|
bool | within (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const override |
| Checks if geom is within this. More...
|
|
virtual | ~QgsGeometryEngine ()=default |
|
virtual double | area (QString *errorMsg=nullptr) const =0 |
|
virtual QgsAbstractGeometry * | buffer (double distance, int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle, double miterLimit, QString *errorMsg=nullptr) const =0 |
| Buffers a geometry. More...
|
|
virtual QgsAbstractGeometry * | buffer (double distance, int segments, QString *errorMsg=nullptr) const =0 |
|
virtual QgsPoint * | centroid (QString *errorMsg=nullptr) const =0 |
| Calculates the centroid of this. More...
|
|
virtual QgsAbstractGeometry * | combine (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the combination of this and geom. More...
|
|
virtual QgsAbstractGeometry * | combine (const QVector< QgsAbstractGeometry * > &geomList, QString *errorMsg, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the combination of this and geometries. More...
|
|
virtual QgsAbstractGeometry * | combine (const QVector< QgsGeometry > &geometries, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the combination of this and geometries. More...
|
|
virtual bool | contains (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom contains this. More...
|
|
virtual QgsAbstractGeometry * | convexHull (QString *errorMsg=nullptr) const =0 |
| Calculate the convex hull of this. More...
|
|
virtual bool | crosses (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom crosses this. More...
|
|
virtual QgsAbstractGeometry * | difference (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the difference of this and geom. More...
|
|
virtual bool | disjoint (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom is disjoint from this. More...
|
|
virtual double | distance (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Calculates the distance between this and geom. More...
|
|
virtual bool | distanceWithin (const QgsAbstractGeometry *geom, double maxdistance, QString *errorMsg=nullptr) const =0 |
| Checks if geom is within maxdistance distance from this geometry. More...
|
|
virtual QgsAbstractGeometry * | envelope (QString *errorMsg=nullptr) const =0 |
|
virtual void | geometryChanged ()=0 |
| Should be called whenever the geometry associated with the engine has been modified and the engine must be updated to suit. More...
|
|
virtual QgsAbstractGeometry * | interpolate (double distance, QString *errorMsg=nullptr) const =0 |
|
virtual QgsAbstractGeometry * | intersection (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the intersection of this and geom. More...
|
|
virtual bool | intersects (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom intersects this. More...
|
|
virtual bool | isEmpty (QString *errorMsg) const =0 |
|
virtual bool | isEqual (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if this is equal to geom. More...
|
|
virtual bool | isSimple (QString *errorMsg=nullptr) const =0 |
| Determines whether the geometry is simple (according to OGC definition). More...
|
|
virtual bool | isValid (QString *errorMsg=nullptr, bool allowSelfTouchingHoles=false, QgsGeometry *errorLoc=nullptr) const =0 |
| Returns true if the geometry is valid. More...
|
|
virtual double | length (QString *errorMsg=nullptr) const =0 |
|
virtual QgsAbstractGeometry * | offsetCurve (double distance, int segments, Qgis::JoinStyle joinStyle, double miterLimit, QString *errorMsg=nullptr) const =0 |
| Offsets a curve. More...
|
|
virtual bool | overlaps (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom overlaps this. More...
|
|
virtual QgsPoint * | pointOnSurface (QString *errorMsg=nullptr) const =0 |
| Calculate a point that is guaranteed to be on the surface of this. More...
|
|
virtual void | prepareGeometry ()=0 |
| Prepares the geometry, so that subsequent calls to spatial relation methods are much faster. More...
|
|
virtual QString | relate (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Returns the Dimensional Extended 9 Intersection Model (DE-9IM) representation of the relationship between the geometries. More...
|
|
virtual bool | relatePattern (const QgsAbstractGeometry *geom, const QString &pattern, QString *errorMsg=nullptr) const =0 |
| Tests whether two geometries are related by a specified Dimensional Extended 9 Intersection Model (DE-9IM) pattern. More...
|
|
void | setLogErrors (bool enabled) |
| Sets whether warnings and errors encountered during the geometry operations should be logged. More...
|
|
virtual QgsAbstractGeometry * | simplify (double tolerance, QString *errorMsg=nullptr) const =0 |
|
virtual QgsGeometryEngine::EngineOperationResult | splitGeometry (const QgsLineString &splitLine, QVector< QgsGeometry > &newGeometries, bool topological, QgsPointSequence &topologyTestPoints, QString *errorMsg=nullptr, bool skipIntersectionCheck=false) const |
| Splits this geometry according to a given line. More...
|
|
virtual QgsAbstractGeometry * | symDifference (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr, const QgsGeometryParameters ¶meters=QgsGeometryParameters()) const =0 |
| Calculate the symmetric difference of this and geom. More...
|
|
virtual bool | touches (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom touches this. More...
|
|
virtual bool | within (const QgsAbstractGeometry *geom, QString *errorMsg=nullptr) const =0 |
| Checks if geom is within this. More...
|
|