[Talk-ca] Determining if a node is within Canada
Victor Bielawski
bielawski1 at gmail.com
Sun Apr 18 16:30:57 BST 2010
[ I file-system-checking forgot to hit 'reply all' yet again.
Apologies for the spam. ]
On Sun, Apr 18, 2010 at 5:12 PM, Thomas Cort <linuxgeek at gmail.com> wrote:
> Hi,
>
> I'm developing a program that extracts Canadian points of interest
> from the planet.osm file. Is there a library, documented algorithm,
> example code, etc for a function which determines whether or not a
> point is within Canada?
>
> Thanks!
> -Thomas
You can preprocess the planet.osm using Osmosis to remove everything
outside of Canada. See:
http://wiki.openstreetmap.org/wiki/Osmosis
http://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format
--
Victor Bielawski
More information about the Talk-ca
mailing list