Jorge Gustavo Rocha wrote > Hi Andrea, > > Yes, Nyall added a test using exactly uclaros's expression and it must > return NULL.
Thanks, Jorge Gustavo. Testing the latest QGIS 3.13.0-Master (8b61e24e96) on Windows, with GEOS 3.8.1-CAPI-1.13.3, it seems to me there is an inconsistency: QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0 0))').intersection(QgsGeometry.fromWkt('Point (42 0)')) returns <QgsGeometry: null> but QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0 0))').intersection(QgsGeometry.fromWkt('Linestring (42 0, 43 0)')) returns <QgsGeometry: LineString EMPTY> and QgsGeometry.fromWkt('Polygon ((0 2, 1 3, 1 2, 0 2))').intersection(QgsGeometry.fromWkt('Polygon ((42 0, 43 1, 43 0, 42 0))')) returns <QgsGeometry: Polygon EMPTY> Should QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0 0))').intersection(QgsGeometry.fromWkt('Point (42 0)')) return <QgsGeometry: Point EMPTY>? Regards. Andrea -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer