Skip to content
Permalink
Browse files
Fix wkt import for QgsCurvePolygonV2. Backport to 2.14
  • Loading branch information
mhugent committed Mar 26, 2017
1 parent fc425b2 commit 36080d6a3e364bc1b5695a7b5fb7d95ea7a921ca
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/geometry/qgscurvepolygonv2.cpp
@@ -158,10 +158,13 @@ bool QgsCurvePolygonV2::fromWkt( const QString& wkt )
{
QPair<QgsWKBTypes::Type, QString> childParts = QgsGeometryUtils::wktReadBlock( childWkt );

if ( QgsWKBTypes::flatType( childParts.first ) == QgsWKBTypes::LineString )
QgsWKBTypes::Type flatCurveType = QgsWKBTypes::flatType( childParts.first );
if ( flatCurveType == QgsWKBTypes::LineString )
mInteriorRings.append( new QgsLineStringV2() );
else if ( QgsWKBTypes::flatType( childParts.first ) == QgsWKBTypes::CircularString )
else if ( flatCurveType == QgsWKBTypes::CircularString )
mInteriorRings.append( new QgsCircularStringV2() );
else if ( flatCurveType == QgsWKBTypes::CompoundCurve )
mInteriorRings.append( new QgsCompoundCurveV2() );
else
{
clear();

0 comments on commit 36080d6

Please sign in to comment.