Opened 13 years ago

Last modified 13 years ago

#795 closed enhancement

[raster] ST_Intersects raster documentation is confusing — at Version 1

Reported by: pracine Owned by: pracine
Priority: medium Milestone: PostGIS 2.0.0
Component: raster Version: master
Keywords: Cc:

Description (last modified by pracine)

The description says: "Returns true if any pixel in a raster band has a value that is not nodatavalue and that geometry region of the pixel intersects the geometry. If hasnodata is passed in, then it will use that to consider if it needs to analyze pixels (true) means analyze pixels, if the convexhull intersects the geometry. false means just return true if the convex hull of the raster intersects with the geometry. If hasnodata is omitted, it reads the value from the meta data of the raster."

The last sentence is false.

Better proposition:

-"Returns true if the geometry intersects with the raster. Nodata values are taken into account so that if the geometry intersects only with nodata values, the function returns false. hasnodata may modify this behavior: if set to false, nodata value are not taken into account and the function returns true as soon as the geometry intersects with the convex hull of the raster."

Change History (1)

comment:1 by pracine, 13 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.