Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Improvements to QgsAbstractGeometry::snappedToGrid
- Fix loss of coordinates when not rounding a particular dimension - Don't segmentize curved geometries - Add extra unit tests - Make createEmptyWithSameType() protected and skip from Python bindings. This method relies on low-level manipulation of the returned geometry which we do not want to expose as public/fixed API
- Loading branch information
Showing
with
470 additions
and 301 deletions.
- +5 −18 python/core/geometry/qgsabstractgeometry.sip
- +25 −6 python/core/geometry/qgscircularstring.sip
- +28 −6 python/core/geometry/qgscompoundcurve.sip
- +1 −2 python/core/geometry/qgscurve.sip
- +8 −3 python/core/geometry/qgscurvepolygon.sip
- +6 −3 python/core/geometry/qgsgeometrycollection.sip
- +4 −3 python/core/geometry/qgslinestring.sip
- +6 −1 python/core/geometry/qgsmulticurve.sip
- +2 −1 python/core/geometry/qgsmultilinestring.sip
- +2 −1 python/core/geometry/qgsmultipoint.sip
- +2 −1 python/core/geometry/qgsmultipolygon.sip
- +6 −1 python/core/geometry/qgsmultisurface.sip
- +7 −3 python/core/geometry/qgspoint.sip
- +8 −1 python/core/geometry/qgspolygon.sip
- +0 −3 python/core/geometry/qgssurface.sip
- +6 −1 python/core/geometry/qgstriangle.sip
- +19 −17 src/core/geometry/qgsabstractgeometry.h
- +15 −2 src/core/geometry/qgscircularstring.cpp
- +25 −30 src/core/geometry/qgscircularstring.h
- +21 −2 src/core/geometry/qgscompoundcurve.cpp
- +27 −31 src/core/geometry/qgscompoundcurve.h
- +91 −7 src/core/geometry/qgscurve.cpp
- +11 −3 src/core/geometry/qgscurve.h
- +8 −17 src/core/geometry/qgscurvepolygon.cpp
- +4 −5 src/core/geometry/qgscurvepolygon.h
- +4 −5 src/core/geometry/qgsgeometrycollection.cpp
- +4 −5 src/core/geometry/qgsgeometrycollection.h
- +8 −73 src/core/geometry/qgslinestring.cpp
- +2 −4 src/core/geometry/qgslinestring.h
- +2 −2 src/core/geometry/qgsmulticurve.cpp
- +4 −1 src/core/geometry/qgsmulticurve.h
- +2 −2 src/core/geometry/qgsmultilinestring.cpp
- +1 −2 src/core/geometry/qgsmultilinestring.h
- +2 −2 src/core/geometry/qgsmultipoint.cpp
- +1 −2 src/core/geometry/qgsmultipoint.h
- +2 −2 src/core/geometry/qgsmultipolygon.cpp
- +1 −2 src/core/geometry/qgsmultipolygon.h
- +2 −2 src/core/geometry/qgsmultisurface.cpp
- +3 −1 src/core/geometry/qgsmultisurface.h
- +1 −2 src/core/geometry/qgspoint.cpp
- +4 −5 src/core/geometry/qgspoint.h
- +2 −2 src/core/geometry/qgspolygon.cpp
- +7 −1 src/core/geometry/qgspolygon.h
- +0 −10 src/core/geometry/qgssurface.cpp
- +0 −3 src/core/geometry/qgssurface.h
- +2 −2 src/core/geometry/qgstriangle.cpp
- +4 −1 src/core/geometry/qgstriangle.h
- +75 −2 tests/src/core/testqgsgeometry.cpp
Oops, something went wrong.