Skip to content
Permalink
Browse files

Accept input with more coordinate dimensions in wkt import

  • Loading branch information
mhugent committed Jul 7, 2015
1 parent 4f212d3 commit 06cc8bada7299024e60b2be3091bde68a185c264
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 06cc8ba

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