Skip to content

Commit

Permalink
Merge pull request #2199 from mhugent/wkt_fix
Browse files Browse the repository at this point in the history
Accept input with more coordinate dimensions in wkt import
  • Loading branch information
mhugent committed Jul 7, 2015
2 parents 4f212d3 + 06cc8ba commit 091cd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 091cd89

Please sign in to comment.