[Gdal-dev] How determine if lat\lon point falls within a shapefile

Jose Luis Gomez Dans josegomez at gmx.net
Mon Feb 25 08:07:38 EST 2008



> if you have multipolygons, you have to check each one
> if you have to transform coordinate systems, you need to do that first

You can use OGR's GEOS functionality for these tests in python. i haven't got any sample code at hand now, but you can use things like within() and so on to check which points are within each feature.

It is fairly easy to code this.

Jose
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free


More information about the gdal-dev mailing list