Skip to content

Commit

Permalink
Accept input with more coordinate dimensions in wkt import
Browse files Browse the repository at this point in the history
(cherry-picked from 06cc8ba)
  • Loading branch information
mhugent authored and nyalldawson committed Jul 16, 2015
1 parent 77e937f commit c19d692
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 c19d692

Please sign in to comment.