Skip to content
Permalink
Browse files

Also shortcut validity checks for multipoint

Since multipoints are always valid (but not always simple, e.g.
if they contain a duplicate point they are valid but non-simple)
  • Loading branch information
nyalldawson committed Sep 24, 2018
1 parent f380577 commit 03bef52d135d1f1e65a8c2335e6bf5ef8ec4b428
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -2366,7 +2366,7 @@ bool QgsGeometry::isGeosValid() const
}

// avoid calling geos for trivial point geometries
if ( QgsWkbTypes::flatType( d->geometry->wkbType() ) == QgsWkbTypes::Point )
if ( QgsWkbTypes::geometryType( d->geometry->wkbType() ) == QgsWkbTypes::PointGeometry )
{
return true;
}

0 comments on commit 03bef52

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