[postgis-tickets] [PostGIS] #3730: [raster] ST_Clip fails when polygon barely intersects with raster

PostGIS trac at osgeo.org
Fri Jun 23 22:04:37 PDT 2017


#3730: [raster]  ST_Clip fails when polygon barely intersects with raster
--------------------------+---------------------------
  Reporter:  yosukesabai  |      Owner:  robe
      Type:  defect       |     Status:  new
  Priority:  medium       |  Milestone:  PostGIS 2.3.3
 Component:  raster       |    Version:  2.3.x
Resolution:               |   Keywords:
--------------------------+---------------------------

Comment (by robe):

 I changed this from Erroring to just providing a NOTICE and returning NULL
 as it was before.

 I notice that when the geometry doesn't intersect the raster, it returns
 an empty raster, but I'm not sure under what other conditions clip can not
 compute a raster, so I left it as returning null.

 We might want to revisit this in PostGIS 2.4 to see if we can revise
 ST_Clip to have an option of returning a single pixel if there is a
 partial pixel overlap. I think right now if there is a partial pixel
 overlap, it doesn't return the pixel.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3730#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list