Skip to content

Commit

Permalink
Also shortcut validity checks for multipoint
Browse files Browse the repository at this point in the history
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 03bef52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 03bef52

Please sign in to comment.