Skip to content
Permalink
Browse files
fix convertToCurve not converting CURVEPOLYGON
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 14, 2021
1 parent 3a87085 commit 0183563c27989556ea9c9b2212ea9dd5d2412107
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 0183563

Please sign in to comment.