[OSM-dev] How to get a specific OSM planet

Brett Henderson brett at bretth.com
Sun Nov 30 08:00:43 GMT 2008


You can do the following:

1. Download the latest planet (ie. 
http://planet.openstreetmap.org/planet-081126.osm.bz2).
2. Download and install osmosis 
(http://wiki.openstreetmap.org/index.php/Osmosis)
3. Run the planet file through the osmosis --bounding-box task to 
extract your region of interest.
4. Use the osmosis --read-change-interval-init task to initialise a 
working directory for changeset replication (ie. osmosis 
--read-change-interval-init workingDirectory=. 
initialDate=2008-11-25_00:00:00).
5. Configure the configuration.txt file to retrieve daily changeset 
files (ie. set baseUrl=http://planet.openstreetmap.org/daily, 
intervalLength=86400, changeFileBeginFormat=yyyyMMdd, and 
changeFileEndFormat=yyyyMMdd).
6. Download my replication script 
(http://svn.openstreetmap.org/applications/utils/osmosis/script/contrib/replicate_osm_file.sh).
7. Modify the script to suit your bounding box and file names.
8. Run the script from cron daily.

To see an example working directory using hourly changesets look at 
http://www.bretth.com/myanmar/.
That directory contains a snapshot of the Myanmar region.

Let me know if you have any questions on the above steps.

Brett


ビカス ヤダワ (vikas yadav) wrote:
> Hi,
>
> I need to know how to get a specific part of the planet data from OSM 
> server.
> I wish to download the indian maps and not the whole planet. This 
> script would execute the download everyday.
> Please suggest.
>
> Thanks,
> Vikas
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>   





More information about the dev mailing list