Skip to content
Permalink
Browse files
fix convertToCurve not converting CURVEPOLYGON
  • Loading branch information
olivierdalang authored and github-actions committed Jun 2, 2021
1 parent 33f6ac8 commit 4b1d83fa0caae48af3b225bd635f59486cd2681b
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 4b1d83f

Please sign in to comment.