id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 3730,[raster] ST_Clip fails when polygon barely intersects with raster,yosukesabai,robe,"It would be better if this returns one pixel, or nothing at all. Currently it throws ERROR and I found hard to handle the error in PG/SQL. {{{ SELECT ST_Summary( ST_Clip( ST_AddBand( ST_MakeEmptyRaster(16, 16, 0, 0, 1, 1, 0, 0), ARRAY[ ROW(1, '8BUI'::text, 0, 255), ROW(2, '8BUI'::text, 0, 255), ROW(3, '8BUI'::text, 0, 255) ]::addbandarg[] ) -- this works --, ST_GeomFromText('POLYGON((15.999999 15.999999, 15.999999 17, 17 17, 17 15.999999, 15.999999 15.999999))') -- this fails , ST_GeomFromText('POLYGON((15.9999999 15.9999999, 15.9999999 17, 17 17, 17 15.9999999, 15.9999999 15.9999999))') ) ); }}} ",defect,closed,medium,PostGIS 2.3.3,raster,2.3.x,fixed,,