From c72734285b146426506925f03fd1ad6c80bcce2c Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Thu, 26 Jan 2017 09:47:04 +0800 Subject: [PATCH] Fix spelling and API doc --- python/core/geometry/qgsgeometry.sip | 1 + src/core/geometry/qgsgeometry.h | 1 + src/core/geometry/qgsgeometrymakevalid.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/core/geometry/qgsgeometry.sip b/python/core/geometry/qgsgeometry.sip index 6787b4b5a3d..e6536a7f37f 100644 --- a/python/core/geometry/qgsgeometry.sip +++ b/python/core/geometry/qgsgeometry.sip @@ -755,6 +755,7 @@ class QgsGeometry * In case of full or partial dimensional collapses, the output geometry may be a collection * of lower-to-equal dimension geometries or a geometry of lower dimension. * Single polygons may become multi-geometries in case of self-intersections. + * It preserves Z values, but M values will be dropped. * @return new valid QgsGeometry or null geometry on error * @note added in QGIS 3.0 */ diff --git a/src/core/geometry/qgsgeometry.h b/src/core/geometry/qgsgeometry.h index 13f7ae17c8f..a9a4a83ae4c 100644 --- a/src/core/geometry/qgsgeometry.h +++ b/src/core/geometry/qgsgeometry.h @@ -810,6 +810,7 @@ class CORE_EXPORT QgsGeometry * In case of full or partial dimensional collapses, the output geometry may be a collection * of lower-to-equal dimension geometries or a geometry of lower dimension. * Single polygons may become multi-geometries in case of self-intersections. + * It preserves Z values, but M values will be dropped. * @return new valid QgsGeometry or null geometry on error * @note added in QGIS 3.0 */ diff --git a/src/core/geometry/qgsgeometrymakevalid.cpp b/src/core/geometry/qgsgeometrymakevalid.cpp index a24c652c706..142b6e50a11 100644 --- a/src/core/geometry/qgsgeometrymakevalid.cpp +++ b/src/core/geometry/qgsgeometrymakevalid.cpp @@ -494,7 +494,7 @@ static GEOSGeometry* LWGEOM_GEOS_makeValidPolygon( const GEOSGeometry* gin, QStr } // NOTE: the noding process may drop lines collapsing to points. - // We want to retrive any of those + // We want to retrieve any of those { GEOSGeometry* pi; GEOSGeometry* po;