Skip to content
Permalink
Browse files

Merge pull request #2199 from mhugent/wkt_fix

Accept input with more coordinate dimensions in wkt import
  • Loading branch information
mhugent committed Jul 7, 2015
2 parents 4f212d3 + 06cc8ba commit 091cd8946257a050bd39180e17aa43136218267a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometryutils.cpp
@@ -364,7 +364,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
foreach ( const QString& pointCoordinates, wktCoordinateList.split( ",", QString::SkipEmptyParts ) )
{
QStringList coordinates = pointCoordinates.split( " ", QString::SkipEmptyParts );
if ( coordinates.size() != dim )
if ( coordinates.size() < dim )
continue;

int idx = 0;

0 comments on commit 091cd89

Please sign in to comment.
You can’t perform that action at this time.