Skip to content

Commit 06cc8ba

Browse files
committedJul 7, 2015
Accept input with more coordinate dimensions in wkt import
1 parent 4f212d3 commit 06cc8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/geometry/qgsgeometryutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
364364
foreach ( const QString& pointCoordinates, wktCoordinateList.split( ",", QString::SkipEmptyParts ) )
365365
{
366366
QStringList coordinates = pointCoordinates.split( " ", QString::SkipEmptyParts );
367-
if ( coordinates.size() != dim )
367+
if ( coordinates.size() < dim )
368368
continue;
369369

370370
int idx = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.