Skip to content

Commit

Permalink
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
1 parent 4f212d3 commit 06cc8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
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 06cc8ba

Please sign in to comment.