We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 93f83a0 commit f380577Copy full SHA for f380577
src/core/geometry/qgsgeometry.cpp
@@ -2365,6 +2365,12 @@ bool QgsGeometry::isGeosValid() const
2365
return false;
2366
}
2367
2368
+ // avoid calling geos for trivial point geometries
2369
+ if ( QgsWkbTypes::flatType( d->geometry->wkbType() ) == QgsWkbTypes::Point )
2370
+ {
2371
+ return true;
2372
+ }
2373
+
2374
QgsGeos geos( d->geometry.get() );
2375
mLastError.clear();
2376
return geos.isValid( &mLastError );
0 commit comments