Given a projection, a zoom level, a grid definition and a coverage polygon - what is the easiest/fastest way to obtain a list of map tile indexes touched by the polygon? Are there any existing tools, possibly in the gdal/ogr family?
I have a good idea how to do the calculations in either Python or PostGIS, and found some implementations like [0] - I mostly wonder if there are any shortcuts or existing tools or functions I am not aware of. I want to optimize for speed, getting the tile indexes, not necessarily the polygons themselves.
The idea behind it is to reseed my cache (geowebcache) in the affected area(s), so I am thinking it is a pretty standard task. However the way for example the geowebcache API is built, you cannot mark several overlapping areas for reseeding before actually executing the request. So my idea would be to identify the affected tiles first, eliminate the duplicates, then send a reseed request for the area.
[0] http://www.spatialdbadvisor.com/postgis_tips_tricks/258/gridding-a-geo-object-postgis
أكثر...
I have a good idea how to do the calculations in either Python or PostGIS, and found some implementations like [0] - I mostly wonder if there are any shortcuts or existing tools or functions I am not aware of. I want to optimize for speed, getting the tile indexes, not necessarily the polygons themselves.
The idea behind it is to reseed my cache (geowebcache) in the affected area(s), so I am thinking it is a pretty standard task. However the way for example the geowebcache API is built, you cannot mark several overlapping areas for reseeding before actually executing the request. So my idea would be to identify the affected tiles first, eliminate the duplicates, then send a reseed request for the area.
[0] http://www.spatialdbadvisor.com/postgis_tips_tricks/258/gridding-a-geo-object-postgis
أكثر...