Mapuploader 6 Commands
You can automate the process of splitting , creating & launching a map using a script.
Some commands are not availble on demo version.
Click here to see an example of a script that downloads a pbf file and creates a map with DEM and Contours!
<mapuploader>version number</mapuploader>
<file>c:\xxx-latest.osm.pbf</file>
Files can have following extensions: pbb , osm , o5m, mp
<mapname>map</mapname>
Mapname is required and cannot be empty
<basecamp>yes</basecamp>
If not added,default is no
options : yes , no
<mapsource>yes</mapsource>
same as basecamp
<fid>auto</fid>
Essential:
use number or auto
<FID>1243</FID>
numbers must not have been used before
<mapid>12345678</mapid>
must be 8 digits , no letters
<gmapsupp>yes<gmapsupp>
Default is no
<gmapsupp_name>gmap</gmapsupp_name>
name of gmapsupp.img
<country>My Country</country>
Enter name of country
<description> </description>
Commands using Splitter
<split>yes</split>
Without this option splitter is not used .
It is essential to use this option when creating a map based on a merge file - see <merge>
<split_file>name of archived tiles</split_file>
Use this option when selecting individual tiles
Use with <split>no</split>
<backup>name of archived tiles</backup>example : <backup>Germany</backup>
<save_tiles>name</save_tiles>
Tiles created are archived under name given.
Memory
<maxnodes>800000 </maxnodes>
Not essential
<memory>28000</memory>
Not essential:
<contours>yes</contours>
Max Jobs
<maxjobs>4</maxjobs>
Contours
<contours>clip</contours>
Contours are clipped to map area preventing them to 'stick out'
No need to follow this with <contours>use_clip</contours>
<contours>use_clip</contours>
Use previously clipped files
<clip_path>1</clip_path># or path to folder
DEM
<dem>yes</dem>
default: no dem
<hgt>auto</hgt>
Important to use this option when using Contours or DEM
when set to auto , it searches folders 1-5 ,ie
<hgt>2</hgt> This searches for hght files in the second of your hgt folders - see Contours/Dem,Settings
TYP & Style
<typ>[path]</typ>
Requires full path
other option: <typ>current</typ>
This uses current TYP file
<style>[name of style]</style>
needs name of style , NOT directory, ie
<style>default</style>
<style>current</style> uses current style
Basecamp / Mapsource
<launch>yes</launch>
Will automatically register and launch map - will only work if
a) Mapsource or Basecamp are on your PC
b) You have administrative rights to access registry
c) Check setting of display level - see below
<detail> </detail>
Use this to define your display level when launching Mapsource/Basecamp 64bit only
Acceptable values: lowest,lower,low,medium,high,higher,highest
ie <detail>medium</detail>
Should be used in combination with <launch>
More Commands
option> </option>
requires a number 1/8 or ''no'
Numbers correspond to number given to option
<url> </url>
needs full path.
Example :<url>http://download.geofabrik.de/europe/great-britain/england/devon-latest.osm.pbf</url>
Verrsion 5.85+ : use multiple url commands for merging files - see example
<download_path></download_path>
Path points to where you want the pbf to be saved
Example: <download_path>c:\downloads</download_path>
Note: This is not required when merging pbfs :use <merge_file> instead (5.85 + only)
<size>[number]m/g</size>
m=megabytes g=gigabytes
example : <size>123m</size> or <size>3.2g</size>
This command is not essential but provides some indication of how much has been downloaded.
<overwrite>yes</overwrite>
setting this to 'yes' automatically deletes existing pbf file
<merge_file>[path]</merge_file>
Applies to Version 5.85+ - see example
<active_route>[number]</active_route>
#1 Driving 2 Motor Cycling 3 Walking 4 Bicycling 5 Trucking 6 Direct 7 Hiking 8 Mountaineering
#9 Tour Cycling 10 Mountain Biking 11 ATV 12 Dirt Biking 13 RV 14 Off Roading
Example
<active_route>4</active_route> # Cycling
#
used to add a comment
date$ (vers 5.60+)
This replaces date$ with today's date
Depending on how your dates are formulated date$ is replaced with :
month number-day dumber-year or
day number-month number-year
Examples:
<Mapname>date$</Mapname>
<remove>date$</remove>
<merge>
You can merge any number of pbf files
This option needs <merge_file>
Example
<merge>e:\temp\luxembourg-latest.osm.pbf</merge>
<merge>e:\temp\lorraine-latest.osm.pbf</merge>
<merge>e:\temp\rheinland-pfalz-latest.osm.pbf</merge>
<merge>e:\temp\saarland-latest.osm.pbf</merge>
<merge_file>e:\temp\luxarea.pbf</merge_file>
Note: when downloading files using <url> there is no need to use <merge>
Instead just add the merged file using <merge_file>
ie
<url>http://download.geofabrik.de/europe/luxembourg-latest.osm.pbf</url>
<url>http://download.geofabrik.de/europe/france/lorraine-latest.osm.pbf</url>
<size>25m,120m</size>
<merge_file>e:\temp\lux_lorraine.pbf</merge_file>
<merge_file>
The file name created when merging pbf files - see above
<nsis>yes</nsis>
If you want to create a setup file for your map , then use this option.
Mapuploader needs to have pointers to makensis.exe in Settings