Opened 8 months ago

Last modified 6 months ago

#5495 new defect

ST_Clip(raster, geom) Docs does not says how the pixels are selected

Reported by: latot Owned by: robe
Priority: medium Milestone: PostGIS 3.5.0
Component: raster Version: 3.4.x
Keywords: Cc:

Description

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!

Change History (1)

comment:1 by robe, 6 months ago

Milestone: PostGIS 3.4.1PostGIS 3.5.0
Note: See TracTickets for help on using tickets.