change
This commit is contained in:
parent
5218a3ee18
commit
8589ff548d
|
@ -1,7 +1,8 @@
|
|||
!sqlite-jdbc-3.34.0.jar
|
||||
Mobile_Atlas_Creator.jar
|
||||
Mobile_Atlas_Creator_UNLOCKED.jar
|
||||
build
|
||||
mapsources
|
||||
mobac-rev.properties
|
||||
|
||||
# ---> Java
|
||||
# Compiled class file
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
increased tile limit to 1 million
|
||||
added the default open street map server
|
||||
included sqlite driver by default
|
||||
removed some broken mapsources
|
||||
removed some broken mapsources that i didnt feel like fixing
|
||||
|
|
720
README.md
720
README.md
|
@ -1,3 +1,719 @@
|
|||
# mobac
|
||||
# Mobile Atlas Creator
|
||||
|
||||
This application creates off-line atlases of raster maps for various cell phone apps on Android, iPhone and WindowsCE as well as GPS devices (Garmin, Magellan and others).
|
||||
Welcome to Mobile Atlas Creator read-me file for end users.
|
||||
|
||||
Before January 2010 this project was known as "TrekBuddy Atlas Creator".
|
||||
|
||||
Mobile Atlas Creator is an open source project hosted on SourceForge.net:
|
||||
[http://mobac.sf.net](http://mobac.sf.net)
|
||||
|
||||
## Table of contents
|
||||
|
||||
* [License](#License)
|
||||
* [Description](#Description)
|
||||
* [Requirements](#Requirements)
|
||||
* [Java Advanced Imaging" (JAI)](#JAI)
|
||||
* [Installation](#Installation)
|
||||
* [Application start](#Start)
|
||||
* [The different atlas formats](#AtlasFormats)
|
||||
* [AFTrack (OSZ)](#AFTrackOSZ)
|
||||
* [AlpineQuestMap (AQM)](#AlpineQuestMap)
|
||||
* [AndNav](#AndNav)
|
||||
* [Big Planet Tracks](#BigPlanet)
|
||||
* [CacheWolf](#CacheWolf)
|
||||
* [Garmin Custom maps](#GarminCustom)
|
||||
* [Glopus](#Glopus)
|
||||
* [Glopus Map File / AFTrack (GMF)](#GMF)
|
||||
* [Google Earth Overlay (KMZ)](#KMZ)
|
||||
* [Magellan RMP](#Magellan)
|
||||
* [MAPLORER](#MAPLORER)
|
||||
* [Maverick](#Maverick)
|
||||
* [MGMaps](#MGMaps)
|
||||
* [Mobile Trail Explorer (MTE)](#MTE)
|
||||
* [NaviComputer](#NaviComputer)
|
||||
* [nfComPass](#nfComPass)
|
||||
* [OruxMaps](#OruxMaps)
|
||||
* [OSMAND](#OSMAND)
|
||||
* [Osmdroid](#Osmdroid)
|
||||
* [OSMTracker](#OSMTracker)
|
||||
* [OziExplorer / large PNG image](#Ozi)
|
||||
* [PathAway](#PathAway)
|
||||
* [RMaps](#RMaps)
|
||||
* [[Nokia] Sports Tracker](#SportsTracker)
|
||||
* [TomTom Raster](#TomTomRaster)
|
||||
* [Touratech QV](#TTQV)
|
||||
* [TrekBuddy](#TrekBuddy)
|
||||
* [TwoNav (RMAP)](#TwoNav)
|
||||
* [Viewranger](#Viewranger)
|
||||
* [Enhancement requests](#Enhancement)
|
||||
* [Problems, Bugs & Errors](#Bugs)
|
||||
* [Known problems and limitations](#Limitations)
|
||||
* [Details for advanced users](#AdvancedUsers)
|
||||
* [Specifying directory configuration](#DirectoryConfig)
|
||||
* [Moving the tile store directory](#TileStoreDir)
|
||||
* [Starting external tools from within MOBAC](#ExternalTools)
|
||||
* [Custom map sources](#CustomMapSource)
|
||||
* [Simple custom map sources](#SimpleCustomMapSource)
|
||||
* [Custom WMS map sources](#CustomWMSMapSource)
|
||||
* [Custom multi-layer map sources](#CustomMultiLayerMapSource)
|
||||
* [Custom CloudMade map sources](#CloudMadeMapSource)
|
||||
* [Custom BeanShell map sources](#BeanShellMapSource)
|
||||
* [Custom MapPack](#CustomMapPack)
|
||||
* [Custom atlas as map source / locally generated tiles](#FileBased)
|
||||
|
||||
* * *
|
||||
|
||||
## <a name="License">License</a>
|
||||
|
||||
Mobile Atlas Creator is under GNU General Public License Version 2 (GPL). For details on the GPL see the license file [gpl.txt](gpl.txt).
|
||||
The source code is available on the [SourceForge.net](http://sourceforge.net/projects/mobac/files/) for download and in the [project's source code Subversion repository](http://sourceforge.net/p/mobac/code/).
|
||||
|
||||
## <a name="Description">Description</a>
|
||||
|
||||
Mobile Atlas Creator creates atlases for several applications. For example [TrekBuddy](http://www.trekbuddy.net) and [Mobile Trail Explorer (MTE)](http://code.google.com/p/mobile-trail-explorer/), the Android applications [AndNav](http://www.andnav.org/), [Maverick](http://www.codesector.com/maverick.php), [Big Planet Tracks](http://code.google.com/p/big-planet-tracks/), [RMaps](http://robertdeveloper.blogspot.com/search/label/rmaps.release), [OruxMaps](http://www.oruxmaps.com/), the Pocket PC application [Glopus](http://www.glopus.de/) and the commercial Windows application [OziExplorer](http://www.oziexplorer.com/). The map image created for OziExplorer can also be used with any PNG capable image viewer (map image in one large PNG file).
|
||||
|
||||
## <a name="Requirements">Requirements</a>
|
||||
|
||||
This application requires that a Java Runtime Environment Version 6 Update 14 (v1.6.0_14) or higher is installed on the computer.
|
||||
|
||||
If you have the choice between different Java Runtimes you should prefer the Java Runtime provided by Sun/Oracle. Especially the OpenJDK has some bugs regarding MOBAC and tends to crash on certain situations.
|
||||
|
||||
### <a name="JAI">Java Advanced Imaging (optional)</a>
|
||||
|
||||
For reducing the color depth of downloaded tiles the library files ( <tt>jai_core.jar</tt> and <tt>jai_codec.jar</tt> ) of the "Java Advanced Imaging" (JAI) have to be present on the system respectively in the same directory as Mobile_Atlas_Creator.jar. Ready to use binary builds of the Java Advanced Imaging library can be obtained at [http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib.zip](http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib.zip)
|
||||
|
||||
## <a name="Installation">Installation</a>
|
||||
|
||||
Copy or move the unzipped files to a folder where you would like to have Mobile Atlas Creator installed. On computers running Windows please make sure **not to install MOBAC into <tt>Program Files</tt> sub-directory!**
|
||||
|
||||
## <a name="Start">Application start</a>
|
||||
|
||||
### Windows
|
||||
|
||||
The application is started by executing the <tt>Mobile Atlas Creator.exe</tt> . During the first application start all necessary files and folders are automatically created by the application.
|
||||
|
||||
### Linux and OSX
|
||||
|
||||
You can start MOBAC by executing the start-up script <tt>start.sh</tt> . Before starting MOBAC the first time it may be necessary to set the executable bit for <tt>start.sh</tt> e.g. by executing the following command:
|
||||
|
||||
<pre>chmod u+x start.sh</pre>
|
||||
|
||||
During the first application start all necessary files and folders are automatically created by the application.
|
||||
|
||||
* * *
|
||||
|
||||
## <a name="AtlasFormats">The different atlas formats</a>
|
||||
|
||||
### <a name="AFTrackOSZ">AFTrack OSZ</a>
|
||||
|
||||
For creating atlases compatible with AFTrack (Symbian S60) you have to select **AFTrack (OSZ)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
OSZ is a ZIP-archive. Within this zip archive a (large) number of tiles with the calibrated folder structure (coordinates) are stored. OSZ only works if each tile has got a resolution of 256x256 Pixels. So be sure to uncheck **Recreate/adjust map tiles (CPU intensive)**.
|
||||
|
||||
The output format is one file for each layer in the corresponding folder.
|
||||
|
||||
#### <a name="AFTrackOSZRestriction">Restrictions</a>
|
||||
|
||||
Depending on the device free memory the file maybe not work. So more then 80000 tiles should not be used.
|
||||
|
||||
### <a name="AlpineQuestMap">AlpineQuestMap (AQM)</a>
|
||||
|
||||
Sorry no further details are available for this atlas format.
|
||||
|
||||
### <a name="AndNav">Creating and using atlases with AndNav</a>
|
||||
|
||||
For creating atlases compatible with AndNav you have to select **AndNav atlas format** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
As atlases for AndNav do not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for AndNav:
|
||||
|
||||
* Change height or width of the map tiles
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
### <a name="BigPlanet">Creating and using atlases with Big Planet Tracks</a>
|
||||
|
||||
For creating offline atlases compatible with [Big Planet Tracks](http://code.google.com/p/big-planet-tracks/) (Android application) you have to select **Big Planet Tracks SQLite** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
The atlas format BigPlanet SQLite does not support all features provided by Mobile Atlas Creator the following settings can not be used or are ignored when creating atlases using this output format:
|
||||
|
||||
* Recreate/adjust map tiles with custom tile size (height and
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
* Atlases created after another are merged into one Database named <tt>[Atlasname] atlas.sqlitedb</tt> which is located in the atlas output directory.
|
||||
|
||||
### <a name="CacheWolf">Creating atlases for CacheWolf</a>
|
||||
|
||||
For creating atlases compatible with [CacheWolf](http://www.cachewolf.de) you have to select **CacheWolf WFL** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
#### Custom tile processing settings enabled
|
||||
|
||||
Maps that have custom tile processing options set are saved as tiled images with one WFL calibration file for each tile. All processing options such as image format and tile size can be used.
|
||||
|
||||
#### Custom tile processing settings disabled
|
||||
|
||||
In this mode automatic tiling is disabled and the same [restrictions](#OziRestriction) and the [warning](#OziWarning) as for the OziExplorer output format apply.
|
||||
|
||||
The output format of an "atlas" for CacheWolf is one subdirectory per layer and within this subdirectory one <tt>PNG</tt> image and one <tt>WFL</tt> file per defined map.
|
||||
|
||||
### <a name="GarminCustom">Creating Garmin Custom maps</a>
|
||||
|
||||
For creating atlases of Creating Garmin Custom maps you have to select **Garmin Custom Map (KMZ)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
Details about the Garmin Custom Map format can be found in the [Garmin Forums](https://forums.garmin.com/forumdisplay.php?f=205)
|
||||
|
||||
Using this atlas output format the following features are ignored when creating atlases:
|
||||
|
||||
* Recreate/adjust map tiles (custom tile size and image format)
|
||||
|
||||
The output format of an "atlas" for Garmin Custom maps is one <tt>KMZ</tt> file per layer containing all maps (max 100) as seperate <tt>JPG</tt> image files. The JPEG compression rate can be specified for each map/image using image format selector in the custom tile processing section. The Garmin Custom Map format defines a maximum image size of 1024x1024 pixels. If a map is larger it will be automatically scaled down to fit into this size. You can prevent scaling when setting the max map size in the settings dialog to 1024.
|
||||
|
||||
### <a name="Glopus">Creating atlases for Glopus</a>
|
||||
|
||||
For creating atlases compatible with Glopus you have to select **Glopus (PNG & KAL)** or **Glopus Map File (GMF)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
#### Glopus (PNG & KAL)
|
||||
|
||||
Using this atlas output format the same [restrictions](#OziRestriction) and the [warning](#OziWarning) as for the OziExplorer output format apply.
|
||||
|
||||
The output format of an "atlas" for Glopus is one subdirectory per layer and within this subdirectory one <tt>PNG</tt> image and one <tt>KAL</tt> file per defined map.
|
||||
|
||||
#### Glopus Map File (GMF)
|
||||
|
||||
Within this file a (large) number of tiles with its calibrated coordinates are stored. Glopus works best if each tile has a resolution of 1024x1024 pixels. So check **Recreate/adjust map tiles (CPU intensive)**. Width and height should be set to **1024**.
|
||||
|
||||
The output format is one file for each layer in the corresponding folder.
|
||||
|
||||
### <a name="GMF">Glopus Map File (GMF) / AFTrack</a>
|
||||
|
||||
For creating atlases compatible with AFTrack (Symbian S60) you have to select **Glopus Map File (GMF)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Within this file a (large) number of tiles with its calibrated coordinates are stored. AFTrack works best if each tile has got a resolution of 256x256 Pixels. So uncheck **Recreate/adjust map tiles (CPU intensive)**.
|
||||
|
||||
The output format is one file for each layer in the corresponding folder.
|
||||
|
||||
#### <a name="AFTrackRestriction">Restrictions</a>
|
||||
|
||||
AFTrack can handle a maximum of 4096 tiles - so be sure not to select more.
|
||||
|
||||
### <a name="KMZ">Google Earth Overlay (KMZ)</a>
|
||||
|
||||
For creating Google Earth Overlays you have to select **Google Earth Overlay (KMZ)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Using this atlas output format the following features are ignored when creating atlases:
|
||||
|
||||
* Recreate/adjust map tiles (custom tile size and image format)
|
||||
|
||||
#### Warning
|
||||
|
||||
The Google Earth Overlay atlas format uses JPG images. The image size depends on the selected maximum map size (see settings dialog). The theoretical maximum map size for this atlas format is 25000\. However it is **strongly recommended not to set the maximum map size higher than 10000** (this will result in a image with uncompressed size about 286 MB).
|
||||
|
||||
### <a name="Magellan">Creating Magellan RMP atlases</a>
|
||||
|
||||
For creating atlases of Creating Garmin Custom Maps you have to select **Magellan (RMP)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Using this atlas output format the following features are ignored when creating atlases:
|
||||
|
||||
* Recreate/adjust map tiles (custom tile size and image format)
|
||||
|
||||
Additionally some other limitations may apply, based on which device and firmware version you are using. Mobile Atlas Creator does not chek those limitations - therefore it may work or not if you are using:
|
||||
|
||||
* An atlas with more than 5 maps.
|
||||
* Maps with a zoom level higher than 15.
|
||||
|
||||
The output format of an "atlas" for Magellan is one <tt>RMP</tt> file in the atlas directory. You can directly load this file in Magellan VantagePoint or transfer it onto your device.
|
||||
|
||||
### <a name="MAPLORER">Creating atlases for MAPLORER</a>
|
||||
|
||||
For creating atlases compatible with [MAPLORER](http://maplorer.com) you have to select the **Maplorer atlas format** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**). You have to choose **JPG image format** under **Layer settings/tile format** (PNG is not supported by Maplorer).
|
||||
|
||||
There are no specific limits on tile sizes and/or numbers; good results for hiking/biking can be obtained using zoom level 15, custom tile size of 1024x1024 (check **Recreate/adjust map tiles (CPU intensive)** under **Layer settings**. For good performance, avoid using too big or too many tiles (the maximum number of columns in Maplorer is currently 26 ('A' to 'Z'), but it is preferable to use less).
|
||||
|
||||
After defining the maps and layers (select region and click **Add selection** under **Atlas Content)** for the atlas, click the button Create Atlas. Once atlas download and creation has completed, all necessary files belonging to the atlas can be found in the directory <tt>atlases\[atlas name]_[current date and time]</tt> .
|
||||
|
||||
To install the atlas on your device, simply connect it to your PC and copy the content of the respective atlas subdirectory (i.e. all .jpg and .pos files generated) to the Maplorer directory (the one which contains maplorer.exe) on your device. Starting Maplorer on the device will automatically read all tiles and create the index map. Detailed instructions on making maps for Maplorer can be found at [http://maplorer.com](http://maplorer.com)
|
||||
|
||||
### <a name="Maverick">Creating and using atlases with Maverick</a>
|
||||
|
||||
For creating atlases compatible with Maverick you have to select **Maverick atlas format** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
As atlases for Maverick do not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for AndNav:
|
||||
|
||||
* Recreate/adjust map tiles (custom tile size and image format)
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
For further information how to use offline atlases with Maverick please see [Maverick Online Help on Setting up offline maps](http://help.codesector.com/MapsCache).
|
||||
|
||||
### <a name="MGMaps">Creating and using atlases with MGMaps</a>
|
||||
|
||||
For creating atlases compatible with MGMaps you have to select **MGMaps** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**). Select a name for the maps, this is important as you will use it to view the maps in MGMaps.
|
||||
|
||||
#### How to copy the maps to your device
|
||||
|
||||
1. Create a folder named <tt>MGMapsCache</tt> in the root of you device or memorycard
|
||||
2. Copy the created folders into this MGMapsCache folder so the directory structure looks like:
|
||||
|
||||
<pre>MGMapsCache
|
||||
MGMapsCache\cache.conf
|
||||
MGMapsCache\macos_10
|
||||
MGMapsCache\macos_11
|
||||
MGMapsCache\macos_12
|
||||
MGMapsCache\macos_10\59_53.mgm
|
||||
MGMapsCache\macos_11\150_106.mgm
|
||||
MGMapsCache\macos_11\150_107.mgm
|
||||
MGMapsCache\macos_11\151_106.mgm
|
||||
MGMapsCache\macos_11\151_107.mgm
|
||||
MGMapsCache\macos_12\365_213.mgm
|
||||
MGMapsCache\macos_12\365_214.mgm
|
||||
MGMapsCache\macos_12\366_213.mgm
|
||||
MGMapsCache\macos_12\366_214.mgm
|
||||
</pre>
|
||||
|
||||
#### How to set up MGMaps to use the maps
|
||||
|
||||
1. Select Settings/Map/Stored Maps, Click on the two boxes labelled Stored Maps and Offline Mode. The first box enables the use of stored map mode. The second box prohibits the use of the mobile phones Internet connect to download live maps. You can leave this unchecked if you want. stored maps folder: now tell MGMaps where you have stored the map tile files. in my case SDCard/MGMapsCache.
|
||||
2. Select Settings/Map/Map types, select options/add custom map,in map type name enter the name of the map you created using MAC in my case macos, map type url you can leave blank, select ok/options/save MGMaps will then apply the settings and display your created map.
|
||||
|
||||
#### Warning
|
||||
|
||||
Avoid using names native to MGMaps such as google, each name used must be defined as a custom map so the directory structure below must have macos,macroad and macsat defined as custom map types.
|
||||
|
||||
<pre>MGMapsCache MGMapsCache\cache.conf MGMapsCache\macos_10
|
||||
MGMapsCache\macos_11 MGMapsCache\macroad_11 MGMapsCache\macsat_11
|
||||
MGMapsCache\macos_12 MGMapsCache\macroad_12 MGMapsCache\macsat_12
|
||||
</pre>
|
||||
|
||||
### <a name="MTE">Creating and using atlases with Mobile Trail Explorer (MTE)</a>
|
||||
|
||||
For creating atlases compatible with Mobile Trail Explorer you have to select **Mobile Trail Explorer Cache** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
If a map source uses an image format different to PNG the tiles will be automatically converted to the PNG format.
|
||||
The output is one <tt>MTEFileCache</tt> file per atlas which contains all maps. An existing cache file can not be updated. If you want to add maps to an existing <tt>MTEFileCache</tt> please use the atlas format **Mobile Trail Explorer** which creates a file structure identical to JTileDownloader and then process the maps using [MTE CacheCreator](http://code.google.com/p/mobile-trail-explorer/wiki/CacheCreator).
|
||||
As atlases for Mobile Trail Explorer does not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for Mobile Trail Explorer:
|
||||
|
||||
* Recreate/adjust map tiles (custom tile size and image format)
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
### <a name="NaviComputer">Creating atlases for NaviComputer</a>
|
||||
|
||||
For creating atlases, compatible with NaviComputer, you have to select **NaviComputer (NMAP)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
After defining the maps and layers for the atlas to be created, start atlas download and creation via the button **Create Atlas**. Once download and creation has completed, the generated file with the extension nmap can be found in the MOBAC output directory. This *.nmap-file is the required input file for NaviComputer.
|
||||
|
||||
### <a name="nfComPass">Creating atlases for nfComPass</a>
|
||||
|
||||
For creating atlases, compatible with [nfComPass](http://www.navifriends.com/phpbbForum/viewtopic.php?f=3&t=17004), you have to click **Atlas -> New Atlas**, select **nfComPass** and give your Atlas a name.
|
||||
By default atlases with a tilesize of 64x64 are created (recommended). For different tile sizes check **Recreate/adjust map tiles (CPU intensive)** under Layer settings. Set Tileformat can not be changed - it is always png. Maybe you must tryout, what is the best tilesize for your device. Choose your layer and zoomlevels and click **Add selection**. Then click **Create atlas**. Once download and creation has completed, the generated folders can be found in the MOBAC output directory. You must copy the data from the <tt>nfComPass.dat</tt> to your nfComPass.dat and fill in the path to your mapdirectory. After that, copy the folder(s) to your device. If it is possible, you should not copy the files with Active Sync to your device.
|
||||
|
||||
### <a name="OruxMaps">Creating OruxMaps atlases</a>
|
||||
|
||||
For creating atlases compatible with [OruxMaps](http://www.oruxmaps.com) as format you have to select **OruxMaps** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Using this atlas output format the following features are ignored when creating atlases:
|
||||
|
||||
* Layer settings, custom tile size. OruxMaps always uses 512x512 tile size. You can select the tile format (PNG or JPEG). If you do not select any, default value is JPEG - quality 90.
|
||||
|
||||
The output format of an "atlas" for OruxMaps is one or more map directories in the atlas directory. You have to copy those maps onto your device (default directory: /oruxmaps/mapfiles/).
|
||||
|
||||
### <a name="OSMAND">Creating atlases for OSMAND</a>
|
||||
|
||||
For creating atlases compatible with OSMAND you have to select **OSMAND tile storage** or **OSMAND SQlite** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
As atlases for OSMAND do not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for OSMAND:
|
||||
|
||||
* Change height or width of the map tiles
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
### <a name="Osmdroid">Creating atlases for Osmdroid</a>
|
||||
|
||||
For creating atlases compatible with Osmdroid you have to select either **Osmdroid ZIP**, **Osmdroid SQLite** or **Osmdroid GEMF** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
The mentioned three formats are "single file" atlases. One of the other possible atlas formats might also be acceptable for Osmdroid. Also, there is other software that is able to deal with GEMF archives.
|
||||
As atlases for Osmdroid do not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for Osmdroid:
|
||||
|
||||
* Change height or width of the map tiles
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
### <a name="OSMTracker">Creating atlases for OSMTracker</a>
|
||||
|
||||
For creating atlases compatible with OSMTracker you have to select **OSMTracker tile storage** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
As atlases for OSMTracker do not support all features provided by Mobile Atlas Creator the following settings are ignored when creating atlases for OSMTracker:
|
||||
|
||||
* Change height or width of the map tiles
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
|
||||
### <a name="Ozi">Creating and using atlases with OziExplorer / large PNG image export</a>
|
||||
|
||||
For creating atlases compatible with OziExplorer you have to select **OziExplorer (PNG & MAP)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
#### <a name="OziRestriction">Restrictions</a>
|
||||
|
||||
As OziExplorer does not support tiled maps some features are ignored when creating atlases in this format:
|
||||
|
||||
* Image output format is fix: 24bit PNG
|
||||
* Recreate/adjust map tiles custom tile is ignored
|
||||
|
||||
The output format of an "atlas" for OziExplorer is one subdirectory per layer and within this subdirectory one <tt>PNG</tt> image and one <tt>MAP</tt> file per defined map. For opening a map in OziExplorer select the menu **File** → **Load from File** → **Load from MAP file**, browse to the layer directory of the created atlas and select the MAP file.
|
||||
|
||||
If you are only interested in the map image you can safely delete the created map file.
|
||||
|
||||
#### <a name="OziWarning">Warning</a>
|
||||
|
||||
Mobile Atlas Creator uses a highly sophisticated and optimized algorithm for creating the PNG files for OziExplorer use. This algorithm allows to create very large maps images at low memory usage. OziExplorer and most image viewers do not use such sophisticated algorithms which can lead to the situation that you can create very large map images - but OziExplorer and other image viewers are not able to open the image.
|
||||
|
||||
### <a name="PathAway">Creating atlases for PathAway</a>
|
||||
|
||||
For creating atlases compatible with PathAway you have to select **PathAway tile cache** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
As atlases for PathAway do not support all features provided by Mobile Atlas Creator the following restrictions apply when creating atlases for PathAway:
|
||||
|
||||
* The maximum zoom level is 16 - higher zoom levels are not possible with this atlas format
|
||||
* Tile width and width can not be changed (settings will be ignored)
|
||||
* Name of all layers and maps is ignored
|
||||
* Structure of the atlas is ignored (which maps belongs to which layer)
|
||||
|
||||
### <a name="RMaps">Creating and using atlases with RMaps</a>
|
||||
|
||||
For creating offline atlases compatible with [RMaps](http://robertdeveloper.blogspot.com/search/label/rmaps) (Android application) you have to select **RMaps SQLite** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
The atlas format RMaps does not support all features provided by Mobile Atlas Creator the following settings can not be used or are ignored when creating atlases using this output format:
|
||||
|
||||
* Recreate/adjust map tiles with custom tile size (height and width have to be 256)
|
||||
* Name of all layers and maps
|
||||
* Structure of the atlas (which maps belongs to which layer)
|
||||
* Atlases created after another are merged into one Database named <tt>[AtlasName] atlas.sqlitedb</tt> which is located in the atlas output directory.
|
||||
|
||||
### <a name="SportsTracker">[Nokia] Sports Tracker</a>
|
||||
|
||||
For creating atlases compatible with [Sports Tracker(ST)](http://www.sports-tracker.com) you have to select **Sports Tracker** (NOT GPS Sportstracker) as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Do not select **Recreate/adjust map tiles**.
|
||||
|
||||
Maximum Zoomlevel of Sports Tracker is 17, default is 13.
|
||||
|
||||
Copy the created atlas (the whole folder) into the following folder of youre phone (depending of the Sports Tracker version):
|
||||
|
||||
* Sports Tracker 1.76: <tt>E:\system\data\Maps\Street\</tt>
|
||||
* Sports Tracker 2.x: <tt>E:\system\data\Maps\Street\</tt>
|
||||
* Sports Tracker 3.x: <tt>E:\system\data\STMaps\Street\</tt>
|
||||
|
||||
For changing the zoom level inside Storts Tracker press 5 to zoom in and 0 to zoom out.
|
||||
|
||||
### <a name="TTQV">Creating and using atlases with Touratech QV / large PNG image export</a>
|
||||
|
||||
For creating atlases compatible with Touratech QV you have to select **Touratech QV** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
#### <a name="TTQVRestriction">Restrictions</a>
|
||||
|
||||
As Touratech QV does not support tiled maps some features are ignored when creating atlases in this format:
|
||||
|
||||
* Image output format is fix: 24bit PNG
|
||||
* Recreate/adjust map tiles custom tile is ignored
|
||||
|
||||
The output format of an "atlas" for Touratech QV is one subdirectory per layer and within this subdirectory one <tt>PNG</tt> image and one <tt>CAL</tt> file per defined map.
|
||||
|
||||
If you are only interested in the map image you can safely delete the created cal file.
|
||||
|
||||
#### <a name="TTQVWarning">Warning</a>
|
||||
|
||||
Mobile Atlas Creator uses a highly sophisticated and optimized algorithm for creating the PNG files for Touratech QV use. This algorithm allows to create very large maps images at low memory usage. Touratech QV and most image viewers do not use such sophisticated algorithms which can lead to the situation that you can create very large map images - but Touratech QV and other image viewers are not able to open the image.
|
||||
|
||||
### <a name="TomTomRaster">Creating atlases using TomTom Raster format</a>
|
||||
|
||||
TBD
|
||||
|
||||
### <a name="TrekBuddy">Creating and using atlases with TrekBuddy</a>
|
||||
|
||||
For creating atlases compatible with TrekBuddy you have to select **TrekBuddy tared atlas** or **TrekBuddy untared atlas** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
After defining the maps and layers for the atlas to be created start atlas download and creation via the button **Create Atlas**. Once atlas download and creation has completed all necessary files belonging to the atlas can be found in the directory <tt>atlases\[atlas name]_[current date and time]</tt> .
|
||||
|
||||
The atlas itself consists of the atlas startup file <tt>cr.tar</tt> (tar format) or <tt>cr.tba</tt> (regular/untared format) and the subdirectories containing the different maps of the atlas. For using the atlas with TrekBuddy copy the whole directory onto your J2ME device. Then use the **Load Atlas** function of TrekBuddy and open <tt>cr.tar</tt> / <tt>cr.tba</tt> (in the atlas root directory).
|
||||
|
||||
### <a name="TwoNav">Creating and using atlases with TwoNav & CompeGPS Land/Air</a>
|
||||
|
||||
To create atlases compatible with TwoNav software you have to select **TwoNav (RMAP)** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**). Atlases created for TwoNav are stored in a format called rmap. It's a binary format that holds the same map data stored at different resolutions - in order to make zooming in and out on low performance mobile devices fast and efficient. However, this causes some restrictions which have to be taken into account:
|
||||
|
||||
* Each map within a layer has to have the same geographical bounds.
|
||||
* There only can be one map in a layer with a given zoom level
|
||||
|
||||
If there are several layers in one atlas, each layer will be stored as a separate rmap file.
|
||||
|
||||
The easiest way to create a correct atlas content is: first select the appropriate grid zoom (combobox next to the zoom slider), then pick zoom levels from the selected grid zoom up to the zoom level of the desired most detailed level, and finally add a selection to the Atlas content by clicking on the "Add selection" button.
|
||||
|
||||
Rmap format also requires no gaps in a zoom level range from the maximum to the minimum selected zoom level. If there are missing zoom levels, they will be created internally by shrinking the existing downloaded tiles. If the missing zoom levels contain a lot of tiles, this operation could take a while.
|
||||
|
||||
Finally copy the <tt>layer.rmap</tt> file from the <tt>atlases\[atlas name]_[current date and time]</tt> folder to your TwoNav <tt>maps</tt> folder.
|
||||
|
||||
As TwoNav does not support all available features provided my MOBAC, some features can not be used when creating atlases in this format:
|
||||
|
||||
* Custom tile height and width (is ignored for TwoNav RMP atlases)
|
||||
* Custom tile format: Only JPEG formats are allowed
|
||||
|
||||
### <a name="Viewranger">Creating and using atlases with Viewranger</a>
|
||||
|
||||
For creating atlases compatible with [Viewranger(VR)](http://www.viewranger.com/) you have to select **Viewranger** as format in atlas format selection dialog that appears when starting a new atlas (menu **Atlas** entry **New Atlas**).
|
||||
|
||||
Maximum Zoomlevel of Viewranger is 18, minimum is 3.
|
||||
|
||||
After creating youre atlas the folder structure looks like:
|
||||
|
||||
* <tt>Mobile Atlas Creator 1.9\atlases\VR_2012-03-28_154944\OSM\13\4308</tt>
|
||||
* <tt>Mobile Atlas Creator 1.9\atlases\VR_2012-03-28_154944\OSM\14\43</tt>
|
||||
* <tt>Mobile Atlas Creator 1.9\atlases\VR_2012-03-28_154944\google\13\4308</tt>
|
||||
* <tt>Mobile Atlas Creator 1.9\atlases\VR_2012-03-28_154944\google\14\43</tt>
|
||||
|
||||
Now we have to [Create a Folder Structure on the Device:](http://support.viewranger.com/wikihelp/index.php/Map_cache_structure)
|
||||
|
||||
If you youre VR Folder is on E: it is on Symbian located in <tt>E:/ViewRanger/MapCache/_PAlbTN/</tt>
|
||||
|
||||
In this folder create following Subfolders, if not already present:
|
||||
|
||||
84,85,87,88,89,129
|
||||
|
||||
e.g. <tt>/ViewRanger/MapCache/_PAlbTN/84</tt>
|
||||
|
||||
Copy the content of "OSM" into 84, "google" into 85 and so on.
|
||||
|
||||
Now it looks like: <tt>E:/ViewRanger/MapCache/_PAlbTN/13/4308/2687</tt> , 2687 is a tile
|
||||
|
||||
VR has different Online Mapsources which are assigned to the Numbers as shown:
|
||||
|
||||
* <tt>OSM->84</tt>
|
||||
* <tt>Opencyclemap->85</tt>
|
||||
* <tt>OSM Direct->87</tt>
|
||||
* <tt>OSM Midnigth->88</tt>
|
||||
* <tt>OSM Fresh->89</tt>
|
||||
* <tt>Open Piste Map->129</tt>
|
||||
|
||||
Of course you can fill the Tilecache with different Maps.
|
||||
|
||||
I use the Open Piste Map eg. as "OSM Public Transport"
|
||||
|
||||
## <a name="Enhancement">Enhancement requests</a>
|
||||
|
||||
If you are missing the map provider of your choice or have other enhancement ideas for Mobile Atlas Creator feel free to open an [Feature Request Ticket](http://sourceforge.net/tracker/?group_id=238075&atid=1105497) at SourceForge.
|
||||
|
||||
If have a new online map which is not available in Mobile Atlas Creator there my be change to add it. Before opening a Feature Request please take a look into the [list of map sources known to incompatible with Mobile Atlas Creator](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/misc/Incompatible%20maps.txt).
|
||||
|
||||
## <a name="Bugs">Problems, Bugs & Errors</a>
|
||||
|
||||
In case of unexpected errors while executing Mobile Atlas Creator you may get presented a exception dialog containing detailed information about the problem. In such a case please create a new [ticket in the Bug Tracker](http://sourceforge.net/tracker/?group_id=238075&atid=1105494) at SourceForge. Please add the detailed exception information and a detailed description of your last performed actions.
|
||||
|
||||
### The default error log
|
||||
|
||||
By default Mobile Atlas Creator records all errors of the current session into it's error log file <tt>Mobile Atlas Creator.log</tt> . This log file is located on Windows system in the directory <tt>%APPDATA%\Mobile Atlas Creator\</tt> and on Linux/Unix/OSX system in the directory <tt>~/.mobac/</tt>
|
||||
|
||||
### Activate the advanced logging system
|
||||
|
||||
If the recorded errors in the error log do not indicate a problem you can activate the overall message logging mechanism of Mobile Atlas Creator:
|
||||
Download the file [log4j.xml](http://mobac.sourceforge.net/log4j.xml) and save it in the directory where the jar file of Mobile Atlas Creator is installed to.
|
||||
|
||||
The next start Mobile Atlas Creator will create a log file in the current directory (on Windows this is usually the directory where the JAR file is located on Linux usually the profile directory). Please note that the log file is erased on each program start. If you think you have found a bug please file it in the [bug tracker at SourceForge](http://sourceforge.net/tracker/?group_id=238075&atid=1105494).
|
||||
|
||||
## <a name="Limitations">Known problems and limitations</a>
|
||||
|
||||
### New map sources
|
||||
|
||||
Mobile Atlas Creator is limited to map sources that provide their maps if form of map tiles. Each of that map tiles has to be of size 256x256 pixels. Additionally the map source has to use the spherical Mercator projection and the number of tiles forming the world on each zoom level has to be one of the following values: 2<sup>0</sup>, 2<sup>1</sup>, 2<sup>2</sup> ... 2<sup>21</sup>, 2<sup>22</sup>.
|
||||
For more details see OpenStreetMap Wiki: [Slippy map tilenames](http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames), [Mercator](http://wiki.openstreetmap.org/wiki/Mercator), [Height and width of a map](http://wiki.openstreetmap.org/wiki/Height_and_width_of_a_map) and [Zoom levels](http://wiki.openstreetmap.org/wiki/Zoom_levels)
|
||||
|
||||
### Java Bugs
|
||||
|
||||
Due to bugs in Java you should not do the following:
|
||||
|
||||
* Install Mobile Atlas Creator into a directory which path contains an "!" (exclamation mark) because of this [Sun Java bug](http://bugs.sun.com/view_bug.do?bug_id=4523159)
|
||||
* Do not use OpenJDK if you want to work with GPX tracks in Mobile Atlas Creator
|
||||
* On Windows without a system proxy set (see connection settings of IE) it is strongly recommended **not to use** the following proxy setting:_Use standard Java proxy settings_
|
||||
|
||||
## <a name="AdvancedUsers">Details for advanced users</a>
|
||||
|
||||
### <a name="DirectoryConfig">Specifying directory configuration</a>
|
||||
|
||||
The following steps are necessary if MOBAC is installed to to a directory that is not writable for reguar users:
|
||||
|
||||
For changing the directory configuration pattern for all users of a MOBAC installation save [this file](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/directories.ini.template) into the same directory where <tt>Mobile_Atlas_Creator.jar</tt> has been installed into and change it's name to <tt>directories.ini</tt> . For more details read the comments in this configuration file.
|
||||
|
||||
### <a name="TileStoreDir">Moving the tile store directory</a>
|
||||
|
||||
Usually the tile store directory where Mobile Atlas Creator saves all downloaded images in is automatically determined.
|
||||
In case you want to select a different directory perform the following steps:
|
||||
|
||||
1. Make sure you have closed MOBAC
|
||||
2. Open <tt>settings.xml</tt> in an text editor
|
||||
3. Inside of the tag <tt><settings></tt> search for the tag <tt><directories></tt>. Inside this tag create a new tag named <tt><tileStoreDirectory></tt>
|
||||
4. Set the path name to the value of this tag (Windows users should replace backslashes with a slashes)
|
||||
5. (optional) Copy or move the content of the old tile store directory into the new tile store directory.
|
||||
|
||||
#### Example
|
||||
|
||||
<pre><settings>
|
||||
<directories>
|
||||
<tileStoreDirectory>E:/tiles</tileStoreDirectory>
|
||||
</directories>
|
||||
...
|
||||
</settings></pre>
|
||||
|
||||
This specified the windows directory <tt>E:\tiles</tt> as new tile store directory. The previously used tile store will not be used anymore.
|
||||
Deleting the <tt><tileStoreDirectory></tt> tag restores the old behavior (automatically tile store directory selection).
|
||||
|
||||
### <a name="ExternalTools">Starting external tools from within MOBAC</a>
|
||||
|
||||
External tools like scripts or other executable programs can be started from the **Tools** menu from within MOBAC. This menu is only visible if external programs have been configured. The advantage of starting a program from within MOBAC is that certain information about selected map source, selected region ... can be transmitted as parameters to the executed program.
|
||||
This allows you for example to create your own maps (render tiles) with external tools like [OSMFILTER](http://wiki.openstreetmap.org/wiki/Osmfilter), [OSMCONVERT](http://wiki.openstreetmap.org/wiki/Osmconvert), [MAPERITIVE](http://maperitive.net/)...
|
||||
|
||||
For defining an external program, create an xml file for each external program to be called. The content of the xml file has to be like one of the following examples. The file-name of the xml is not relevant - it only has to end with <tt>.xml</tt>
|
||||
|
||||
#### test.xml
|
||||
|
||||
Demonstrates how to execute an Windows batch file.
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ExternalTool>
|
||||
<name>Name shown in tools menu</name>
|
||||
<command>cmd.exe /c start .\tools\mybatch.cmd</command>
|
||||
<parameters>MIN_LON MIN_LAT MAX_LON MAX_LAT MIN_ZOOM MAX_ZOOM MAPSOURCE_NAME MAPSOURCE_DISPLAYNAME NAME_EDITBOX </parameters>
|
||||
<debug>true</debug>
|
||||
</ExternalTool>
|
||||
</pre>
|
||||
|
||||
[Annotated sample file download](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/tools/test.xml)
|
||||
|
||||
#### test-exe.xml
|
||||
|
||||
Demonstrates how to execute an regular windows program.
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<ExternalTool>
|
||||
<name>Name shown in tools menu</name>
|
||||
<command>C:\sample-path\program.exe</command>
|
||||
<parameters>MIN_LON MIN_LAT MAX_LON MAX_LAT MIN_ZOOM MAX_ZOOM MAPSOURCE_NAME MAPSOURCE_DISPLAYNAME NAME_EDITBOX </parameters>
|
||||
<debug>true</debug>
|
||||
</ExternalTool>
|
||||
</pre>
|
||||
|
||||
The most interesting section is the content of **<parameters>**. It contains a space separated list of parameters the specified command will be executed with. The following values can be used:
|
||||
|
||||
* <tt>MAX_LAT</tt> - Maximum latitude (upper border) off the selected area
|
||||
* <tt>MIN_LAT</tt> - Minimum latitude (lower border) off the selected area
|
||||
* <tt>MAX_LON</tt> - Maximum longitude (right border) off the selected area
|
||||
* <tt>MIN_LON</tt> - Minimum longitude (left border) off the selected area
|
||||
* <tt>MIN_ZOOM</tt> - minimum zoom of selected zoom levels check-boxes
|
||||
* <tt>MAX_ZOOM</tt> - maximum zoom of selected zoom levels check-boxes
|
||||
* <tt>MAPSOURCE_NAME</tt> - Currently select map source internal name (used in atlas profile xml file)
|
||||
* <tt>MAPSOURCE_DISPLAYNAME</tt> - Currently select map source display name (as shown in the GUI)
|
||||
* <tt>NAME_EDITBOX</tt> - content of the edit box "Name" in the side panel "Atlas Content"
|
||||
|
||||
## <a name="CustomMapSource">Custom map sources</a>
|
||||
|
||||
### <a name="SimpleCustomMapSource">Simple custom map sources</a>
|
||||
|
||||
Custom map sources which uses a similar URL scheme as Google/OpenStreetMap can be added by saving for each custom map source the definition in form of an xml file in the <tt>mapsources</tt> directory.
|
||||
|
||||
The following section shows is an example how the xml file has to be formatted. It defines an additional map source named "Custom OSM Mapnik" which shows map tiles identical to the predefined map source "OpenStreetMap Mapnik".
|
||||
|
||||
<a name="MapSourceNameUnique"></a>**Note:**The name specified in there has to be unique among all available map sources within MOBAC. The list of all available map sources can be obtained via command **Show all map source names** in the menu **Debug**.
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8"?>
|
||||
<customMapSource>
|
||||
<name>Custom OSM Mapnik</name>
|
||||
<minZoom>0</minZoom>
|
||||
<maxZoom>18</maxZoom>
|
||||
<tileType>png</tileType>
|
||||
<tileUpdate>None</tileUpdate>
|
||||
<url>http://tile.openstreetmap.org/{$z}/{$x}/{$y}.png</url>
|
||||
<backgroundColor>#000000</backgroundColor>
|
||||
</customMapSource>
|
||||
</pre>
|
||||
|
||||
The most important part of this definition is the url. It is a template containing specific placeholders which are encapsulated by curly brace:
|
||||
|
||||
* **{$z}** for the zoom level - number range: [_minZoom_ .. _maxZoom_]
|
||||
* **{$x}** for the x tile coordinate - number range: [0..2<sup>_zoom level_</sup> ]
|
||||
* **{$y}** for the y tile coordinate - number range: [0..2<sup>_zoom level_</sup> ]
|
||||
|
||||
Note: If the url contains the ampersand character **&** you have to encode it as **&**. Otherwise it not be valid XML and therefore can not bo loaded by MOBAC.
|
||||
|
||||
Example file for download: [Example custom map source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20map%20source.xml)
|
||||
|
||||
### <a name="CustomWMSMapSource">Custom WMS map sources</a>
|
||||
|
||||
Similar a WMS map source can be defined. Currently only <tt>EPSG:4326</tt> as coordinatesystem is supported.
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<customWmsMapSource>
|
||||
<name>TerraServer WMS</name>
|
||||
<minZoom>12</minZoom>
|
||||
<maxZoom>18</maxZoom>
|
||||
<tileType>JPG</tileType>
|
||||
<version>1.1.1</version>
|
||||
<layers>DRG</layers>
|
||||
<url>http://terraserver-usa.com/ogcmap6.ashx?</url>
|
||||
<coordinatesystem>EPSG:4326</coordinatesystem>
|
||||
<aditionalparameters>&EXCEPTIONS=BLANK&Styles=</aditionalparameters>
|
||||
<backgroundColor>#000000</backgroundColor>
|
||||
</customWmsMapSource></pre>
|
||||
|
||||
Example file (with comments) for download: [Example custom WMS map source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20WMS%20map%20source.xml)
|
||||
|
||||
### <a name="CustomMultiLayerMapSource">Custom multi-layer map sources</a>
|
||||
|
||||
The same way as [custom map sources](#CustomMapSource) map sources which consist of two or more layers can be defined as well. Note that all except the background map source layer (first in the list) must have transparent parts - otherwise layers in the list before will not be visible.
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<customMultiLayerMapSource>
|
||||
<name>Custom OSM Mapnik with Hills (Ger)</name>
|
||||
<tileType>PNG</tileType>
|
||||
<layers>
|
||||
<customMapSource>
|
||||
<name>Custom OSM Mapnik</name>
|
||||
<minZoom>0</minZoom>
|
||||
<maxZoom>18</maxZoom>
|
||||
<tileType>PNG</tileType>
|
||||
<tileUpdate>None</tileUpdate>
|
||||
<url>http://tile.openstreetmap.org/{$z}/{$x}/{$y}.png</url>
|
||||
<backgroundColor>#000000</backgroundColor>
|
||||
</customMapSource>
|
||||
<customMapSource>
|
||||
<name>Custom transparent hillshade</name>
|
||||
<minZoom>0</minZoom>
|
||||
<maxZoom>18</maxZoom>
|
||||
<tileType>PNG</tileType>
|
||||
<tileUpdate>None</tileUpdate>
|
||||
<url>http://www.wanderreitkarte.de/hills/{$z}/{$x}/{$y}.png</url>
|
||||
</customMapSource>
|
||||
</layers>
|
||||
</customMultiLayerMapSource>
|
||||
</pre>
|
||||
|
||||
Example file for download: [Example custom multi-layer map source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20multi-layer%20map%20source.xml)
|
||||
|
||||
### <a name="CloudMadeMapSource">Custom CloudMade map sources</a>
|
||||
|
||||
The [CloudMade map service](http://maps.cloudmade.com/) offers a large number of OpenStreetMap based maps with different styles. Each style is accessible through it's <tt>styleID</tt> . Custom CloudMade maps can be added to MOBAC via a simple XML file containing a map name used by MOBAC and a styleID:
|
||||
|
||||
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<cloudMade>
|
||||
<displayName>CloudMade blackout</displayName>
|
||||
<styleID>1960</styleID>
|
||||
</cloudMade></pre>
|
||||
|
||||
Example file for download: [Example CloudMade1960.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20CloudMade1960.xml)
|
||||
|
||||
### <a name="BeanShellMapSource">Custom BeanShell map sources</a>
|
||||
|
||||
BeanShell map sources as the can be developed using [MapEvaluator](http://sourceforge.net/apps/mediawiki/mobac/index.php?title=MapEvaluator) can be used by MOBAC. To do so place the saved BeanShell code file (file extension <tt>.bsh</tt> ) in the <tt>mapsources</tt> directory. It will be loaded on next start-up of MOBAC.
|
||||
|
||||
It is recommended to add a line defining the map source name ([must be unique](#MapSourceNameUnique)).
|
||||
|
||||
<pre>name = "Your map source name here";</pre>
|
||||
|
||||
Example file for download: [Example beanshell map source.bsh](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20beanshell%20map%20source.bsh)
|
||||
|
||||
### <a name="CustomMapPack">Custom Map Pack</a>
|
||||
|
||||
Developing a custom map pack requires at least basic Java skills. Therefore the description on how to develop a custom map pack is only part of the source code release of MOBAC. You can get the source code of MOBAC by using the latest <tt>src</tt> release available in the [files section at Sourceforge](http://sourceforge.net/projects/mobac/files/Mobile%20Atlas%20Creator/) or you can get it directly from the [Subversion code repository](http://sourceforge.net/p/mobac/code/) using the latest <tt>trunk</tt> version.
|
||||
|
||||
### <a name="FileBased">Custom atlas as map source / locally generated tiles</a>
|
||||
|
||||
Existing atlases or locally rendered tiles can be directly integrated into MOBAC as custom map source without having to set-up a local web-server.
|
||||
At the moment the formats used by OSMTracker, AndNav, Maverick and OSMAND are supported. For adding such an atlas as map source download the [Example custom tile files source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20tile%20files%20source.xml) file, adapt the <tt><sourceFolder></tt> entry and place it in the <tt>mapsources</tt> directory.
|
||||
|
||||
Tiles can also be packed into one or more zip files and directly used by MOBAC. For details please see the [Example custom tile zip source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20tile%20zip%20source.xml).
|
||||
**Note: When working with large ZIP files (more than 4 GB) it is required to use Java 7.**
|
||||
|
||||
SQLite based atlas formats can also be used directly by MOBAC. For details please see the [Example custom tile SQLite source.xml](http://svn.code.sf.net/p/mobac/code/tags/MOBAC%201.9/v1.9.16%20final/mapsources/Example%20custom%20tile%20SQLite%20source.xml)
|
||||
|
|
10
build.xml
10
build.xml
|
@ -4,9 +4,9 @@
|
|||
<property file="src/main/resources/mobac/mobac.properties" />
|
||||
|
||||
<property name="rev.prop.file" value="src/main/resources/mobac/mobac-rev.properties" />
|
||||
<property name="jar.name" value="Mobile_Atlas_Creator.jar" />
|
||||
<property name="zip.name" value="Mobile Atlas Creator ${mobac.version}.zip" />
|
||||
<property name="zip_src.name" value="Mobile Atlas Creator ${mobac.version} src.zip" />
|
||||
<property name="jar.name" value="Mobile_Atlas_Creator_UNLOCKED.jar" />
|
||||
<property name="zip.name" value="Mobile Atlas Creator UNLOCKED ${mobac.version}.zip" />
|
||||
<property name="zip_src.name" value="Mobile Atlas Creator UNLOCKED ${mobac.version} src.zip" />
|
||||
<property name="main.class" value="mobac.StartMOBAC" />
|
||||
|
||||
<property name="rtlibraryjar.non_osx" value="${java.home}/lib/rt.jar" />
|
||||
|
@ -19,7 +19,7 @@
|
|||
|
||||
<property name="je-version" value="3.3.93" />
|
||||
<property name="sqlite-version" value="3.34.0" />
|
||||
|
||||
|
||||
<!-- Java target version -->
|
||||
<property name="java-target" value="1.6" />
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
|||
<available file="keys/keystore.jks" property="keystore.present" />
|
||||
</target>
|
||||
|
||||
<!-- This task is only executed if a java key store is present in the keys
|
||||
<!-- This task is only executed if a java key store is present in the keys
|
||||
directory -->
|
||||
<target name="sign_mapsources" depends="build_mapsources,check_keystore"
|
||||
if="keystore.present">
|
||||
|
|
Loading…
Reference in New Issue