[gdal-dev] ogr + python: find polygons in x,y
Sebastian E. Ovide
sebastian.ovide at gmail.com
Wed Dec 8 11:40:48 EST 2010
Hi Jose,
thanks for that. I've used SetSpatialFilterRect(x,y,x+0.01,y+0.01)
On Wed, Dec 8, 2010 at 12:16 PM, Jose Gomez-Dans <jgomezdans at gmail.com>wrote:
> Hi,
>
> On 8 December 2010 09:38, Sebastian E. Ovide <sebastian.ovide at gmail.com>
> wrote:
> > Using Python + Gdal/OGR is there any efficient way of finding all the
> > polygons that contains the point X,Y ?
>
> This is my try. Not the most efficient, but you could always use a
> spatial index and a spatial filter:
> <http://gist.github.com/733207>
>
> Jose
>
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101208/81b06d54/attachment.html
More information about the gdal-dev
mailing list