Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes reproject layer with curve geometries
  • Loading branch information
YoannQDQ authored and nyalldawson committed Mar 29, 2023
1 parent 288346e commit a54e0c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmtransform.cpp
Expand Up @@ -107,6 +107,8 @@ QgsFeatureList QgsTransformAlgorithm::processFeature( const QgsFeature &f, QgsPr
if ( feature.hasGeometry() )
{
QgsGeometry g = feature.geometry();
// convert to straight segments to avoid issues with distorted curves
g.convertToStraightSegment();
try
{
if ( g.transform( mTransform ) == Qgis::GeometryOperationResult::Success )
Expand Down

0 comments on commit a54e0c5

Please sign in to comment.