Closed ebocher closed 5 months ago
@nicolas-f
Select st_intersects('POINT EMPTY'::GEOMETRY , 'POINT(0 0)'::geometry) as the_geom
Maybe it should return false because it is not in the same projection system
Sure PostGIS returns false. I will start to udpate all functions in H2GIS to fix this issue. It will be a big PR.
Fixed
H2GIS checks the SRID of the geometries to allow some operations. This cause some troubles when a geometry is empty because the SRID is unhnown.
See : https://github.com/orbisgis/h2gis/blob/master/h2gis-functions/src/main/java/org/h2gis/functions/spatial/operators/ST_Intersection.java#L61
returns a null value but it must return a 0 srid
throws an exception. It woud be more accurate to return POINT EMPTY