[postgis-devel] [PostGIS] #629: Raster ST_Contains
PostGIS
trac at osgeo.org
Wed Oct 20 02:43:30 PDT 2010
#629: Raster ST_Contains
----------------------------+-----------------------------------------------
Reporter: andrewsimpson | Owner: jorgearevalo
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 1.5.3
Component: postgis raster | Version: 1.5.X
Keywords: |
----------------------------+-----------------------------------------------
Changes (by jorgearevalo):
* owner: pracine => jorgearevalo
* status: new => assigned
Comment:
Hi Andrew,
ST_Contains considers a polygon doesn't contain its boundaries, and that's
what's happening here, I think.
The BOX2D constructed to make the query is based on the pixel corners of
each block (=row in raster table in tiled rasters) transformed in map
coordinates using geotransform array. Making a buffer around this box
could solve the problem, yes, but I think getting a tile per server round
it's an improvable strategy.
I have a new version of GDAL driver, with some improvements, but this part
hasn't be improved yet. Suggestions are welcome before committing it.
Many thanks for the report, Andrew.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/629#comment:1>
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-devel
mailing list