[postgis-tickets] [PostGIS] #5495: ST_Clip(raster, geom) Docs does not says how the pixels are selected

PostGIS trac at osgeo.org
Tue Aug 29 08:26:02 PDT 2023


#5495: ST_Clip(raster, geom) Docs does not says how the pixels are selected
--------------------+---------------------------
 Reporter:  latot   |      Owner:  robe
     Type:  defect  |     Status:  new
 Priority:  medium  |  Milestone:  PostGIS 3.4.1
Component:  raster  |    Version:  3.4.x
 Keywords:          |
--------------------+---------------------------
 Hi all, I was playing with ST_Clip, until I notice that not all the pixels
 was selected from a linestring.

 After checking the docs: https://postgis.net/docs/en/RT_ST_Clip.html

 I notice there is no place that explain what ST_Clip does with the
 vectors.... checking with robe with enough buffer works, maybe uses the
 Bresenham algorithm, or selects it if fully covers the pixel... or if it
 covers the centroid of the pixel...

 I think would be great clarify this on the Docs what is the condition to
 select the pixels.

 Thx!
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5495>
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