Hi guys, QgsGeos class wraps the QgsGeometryEngine interface of a
QgsAbstractGeometryV2 geometry. It is used massively for many spatial functions
(IsGeosValid, contains, crosses, intersects....) in QgsGeometry.But testing
perfomance I see that all operations create in QgsGeos a new GEOSGeometry
instance from the current QgsGeometry object.It is a performance bottleneck
(e.g. labeling), We can test....QgsGeometry a = ...
QgsGeometry b = ...
for (int i = 0; i < 100; i++)
{
bool contains = a.contains( &b );
}
The current code creates 200 GEOSGeometry objects.
I am right ? Is there one reason for this behavior?
I created a pull ( https://github.com/qgis/QGIS/pull/2859 ) for discussion or
review. If I am wrong, my apologies, I delete the pull.
Thanks in advanceAlvaro
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer