16 #ifndef QGSGEOMETRYVALIDATOR_H
17 #define QGSGEOMETRYVALIDATOR_H
19 #include "qgis_core.h"
73 void validatePolyline(
int i,
const QgsLineString *line,
bool ring =
false );
74 void validatePolygon(
int partIndex,
const QgsPolygon *polygon );
75 void checkRingIntersections(
int partIndex0,
int ringIndex0,
const QgsLineString *ring0,
int partIndex1,
int ringIndex1,
const QgsLineString *ring1 );
76 double distLine2Point(
double px,
double py,
QgsVector v,
double qX,
double qY );
77 bool intersectLines(
double px,
double py,
QgsVector v,
double qx,
double qy,
QgsVector w,
double &sX,
double &sY );
79 bool pointInRing(
const QgsLineString *ring,
double pX,
double pY );
82 QVector<QgsGeometry::Error> *mErrors;
void validationFinished(const QString &summary)
Sent when the validation is finished.
void errorFound(const QgsGeometry::Error &error)
Sent when an error has been found during the validation process.
A geometry is the spatial representation of a feature.
ValidationMethod
Available methods for validating geometries.
@ ValidatorQgisInternal
Use internal QgsGeometryValidator method.
Line string geometry type, with support for z-dimension and m-values.
A class to represent a vector.