Skip to content
Permalink
Browse files
fix convertToCurve not converting CURVEPOLYGON
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 21, 2021
1 parent 1a9501b commit 942bad24d7745c3427a7b43b0b79dfaae9c6a7c8
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/core/geometry/qgsinternalgeometryengine.cpp
@@ -1419,13 +1419,6 @@ QgsGeometry QgsInternalGeometryEngine::convertToCurves( double distanceTolerance
return QgsGeometry( mGeometry->clone() ); // point geometry, nothing to do
}

if ( QgsWkbTypes::isCurvedType( mGeometry->wkbType() ) )
{
// already curved. In future we may want to allow this, and convert additional candidate segments
// in an already curved geometry to curves
return QgsGeometry( mGeometry->clone() );
}

if ( const QgsGeometryCollection *gc = qgsgeometry_cast< const QgsGeometryCollection *>( mGeometry ) )
{
int numGeom = gc->numGeometries();

0 comments on commit 942bad2

Please sign in to comment.