Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
53 additions
and 53 deletions.
- +5 −5 python/core/geometry/qgsgeometry.sip
- +4 −4 src/analysis/network/qgsvectorlayerdirector.cpp
- +1 −1 src/app/qgsmaptooldeletepart.cpp
- +2 −2 src/app/qgsmaptooloffsetcurve.cpp
- +14 −14 src/core/geometry/qgsgeometry.cpp
- +5 −5 src/core/geometry/qgsgeometry.h
- +1 −1 src/core/geometry/qgsgeometryfactory.cpp
- +2 −2 src/core/geometry/qgsgeometryfactory.h
- +1 −1 src/core/qgsgeometryvalidator.cpp
- +3 −3 src/core/qgsogcutils.cpp
- +2 −2 src/core/qgstracer.cpp
- +1 −1 src/core/qgsvectorlayereditutils.cpp
- +1 −1 src/core/symbology/qgssymbollayerutils.cpp
- +1 −1 src/gui/qgshighlight.cpp
- +2 −2 src/gui/qgsrubberband.cpp
- +3 −3 src/plugins/topology/topolTest.cpp
- +1 −1 src/providers/grass/qgis.v.in.cpp
- +2 −2 tests/src/core/testqgsgeometry.cpp
- +2 −2 tests/src/core/testqgsgml.cpp
wkt = QStringLiteral( "MultiLineString ((0 0, 10 0, 10 10, 20 10),(30 30, 40 30, 40 40, 50 40))" ); | ||
geom = QgsGeometry::fromWkt( wkt ); | ||
result = geom.smooth( 1, 0.25 ); | ||
QgsMultiPolyline multiLine = result.asMultiPolyline(); | ||
QgsMultiPolyline expectedMultiline; | ||
QgsMultiPolylineXY multiLine = result.asMultiPolyline(); | ||
QgsMultiPolylineXY expectedMultiline; | ||
expectedMultiline << ( QgsPolylineXY() << QgsPointXY( 0, 0 ) << QgsPointXY( 7.5, 0 ) << QgsPointXY( 10.0, 2.5 ) | ||
<< QgsPointXY( 10.0, 7.5 ) << QgsPointXY( 12.5, 10.0 ) << QgsPointXY( 20.0, 10.0 ) ) | ||
<< ( QgsPolylineXY() << QgsPointXY( 30.0, 30.0 ) << QgsPointXY( 37.5, 30.0 ) << QgsPointXY( 40.0, 32.5 ) |
Oops, something went wrong.