Skip to content
Permalink
Browse files

Accept input with more coordinate dimensions in wkt import

(cherry-picked from 06cc8ba)
  • Loading branch information
mhugent authored and nyalldawson committed Jul 7, 2015
1 parent 77e937f commit c19d6922b5f06fb0859662fe6026879bcb1949ad
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 c19d692

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