[OSM-talk] osmosis and polygon download ...

Cartinus cartinus at xs4all.nl
Wed May 28 14:20:06 BST 2008


On Wednesday 28 May 2008 03:45:21 Francois De Ryckel wrote:
> Any advices on other way to draw a polygon for a country, so I would be
> able to run Osmosis and download all the data of that country.

If the border for a country is available in the OSM database, then you can 
download it with OSMXAPI [1]. Next you can use JOSM to close the coastline 
(needs only a few points for a polygon used for data extraction). Then you 
can use a Perl-script [2] to turn the osm file into a polygon file.

[1] http://wiki.openstreetmap.org/index.php/Osmxapi
[2] 
http://trac.openstreetmap.org/browser/applications/utils/osm-extract/polygons

-- 
m.v.g.,
Cartinus




More information about the talk mailing list