Raster _st_intersects was doing ST_Collect of polygons building each pixel,
which led to invalid geometry and TopologyException.
Thanks Vinícius A.B. Schmidt for reporting and testing solutions.
Closes #4132
git-svn-id: http://svn.osgeo.org/postgis/trunk@16660
b70326c6-7e19-0410-871a-
916f4a2858ee
- #4115, Fix a bug that created MVTs with incorrect property values under
parallel plans (Raúl Marín).
- #4120, ST_AsMVTGeom: Clip using tile coordinates (Raúl Marín).
+ - #4132, ST_Intersection on Raster now works without throwing TopologyException
+ (Vinícius A.B. Schmidt, Darafei Praliaskouski)
See PostGIS 2.5.0 section for full details
RETURN TRUE;
END IF;
- SELECT @extschema@.ST_Collect(t.geom) INTO _geom FROM @extschema@.ST_PixelAsPolygons(rast, nband) AS t;
+ SELECT @extschema@.ST_Buffer(@extschema@.ST_Collect(t.geom), 0) INTO _geom FROM @extschema@.ST_PixelAsPolygons(rast, nband) AS t;
RETURN @extschema@.ST_Intersects(geom, _geom);
END;
$$ LANGUAGE 'plpgsql' IMMUTABLE _PARALLEL