phyosithu / osm2garmin

Automatically exported from code.google.com/p/osm2garmin
GNU General Public License v2.0
0 stars 0 forks source link

Dowloading only region file #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Programme is capaple of downloading only whole planet file but there is no 
option for downloading regions instead.

Be able to download single region instead of very large planet file.

Original issue reported on code.google.com by V.Jav...@gmail.com on 6 Jun 2012 at 11:52

GoogleCodeExporter commented 9 years ago
The purpose of the Osm2garmin software is to create region files from the whole 
Planet file and, with later runs, keep the planet file and all region files 
up-to-date. Nevertheless, with a little effort you can use it to process a 
region file as well:

1. Download a region file of your interest.
2. Put the downloaded file into Osm2garmin work directory and rename it to 
planet.osm.pbf
3. Create osmosiswork directory in your Osm2garmin work directory.
3. From planet.openstreetmap.org/hour-replicate or 
planet.openstreetmap.org/redaction-period/hour-replicate download a file 
xxx-state.txt which is the same age or older than data your regional file is 
based on. Put the downloaded file to osmosiwork and rename it to state.txt.
4. Run Osm2garmin and start processing. Updates will be downloaded and your 
region file will be updated with latest updates. According to your regions 
settings, regions will be processed based on updated data.

Please note that updates for the whole planet will be downloaded and applied to 
your file.

Original comment by mantl...@gmail.com on 6 Jun 2012 at 12:56

GoogleCodeExporter commented 9 years ago
When you have successfully completed an Osm2garmin run with a region of your 
interest, e.g. australia_nz and you do not need other regions, the procedure is 
even easier:

1. Take away (rename or delete) both planet.osm.pbf and planet_old.osm.pbf from 
Osm2garmin working directory.
2. Copy or move regional data file, e.g. austraila_nz.osm.pbf from australia_nz 
folder in maps directory to your Osm2garmin working directory and rename it to 
planet.osm.pbf
3. Run Osm2garmin and start processing.

You can repeat steps 1-3 anytime to update your maps.

Original comment by mantl...@gmail.com on 6 Jun 2012 at 1:15