[ gpsdrive ] [gpsdrive] gpsdrive & openstreetmap howto
haylocki
haylocki at yahoo.co.uk
Fri Feb 1 00:56:13 AKST 2008
Hi,
> by the way: is it possible to download somewhere openstreetmap file for
> Italy alone? my old laptop won't swallow whole europe file, it blocks
> after " processing nodes 18350 ". how big is the decompressed file?
>
It's now possible to download large areas (such as countries) from OSM
You need to know the coordinates of the bounding box for the area you wish
to download.
the command is :
wget http://www.informationfreeway.org/api/0.5/*[bbox=<left Lon>,<Bottom
Lat>,<Right Lon>,<Top Lat>] -O my_country.osm
As an example,this command will download a file called Philippines.osm,
containing all the data in the Philippines, into the current directory.
wget
http://www.informationfreeway.org/api/0.5/*[bbox=116.9106,5.3102,127.9038,19.6132]
-O Philippines.osm
You will find the data is more up to date than the planet dump, as it's
updated hourly (or sooner).
The file is also sooooo... much smaller than the Planet dump. For instance
the whole of the Philippines is currently only ~50 MB uncompressed.
After downloading, I think you can install the data into postgresql using :
/mapnik-osm-updater.sh --all-planet --no-mirror
--planet-file="<path/to/planet/file/my_country.osm>"
HTH
Cheers, Ian
P.S.
Open for corrections, by those that know what they're doing ;-)
--
View this message in context: http://www.nabble.com/gpsdrive---openstreetmap-howto-tp15193344p15223368.html
Sent from the GpsDrive mailing list archive at Nabble.com.
More information about the GPSdrive
mailing list