My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 15, 2009 by jerome077
MapExamples  
Examples of map configuration files.

See the page MapConfiguration for a complete description of the syntax.

Simple tile server: Open Street Map

OpenStreetMap is a free editable map of the whole world.

<= Mapnik ; Osmarender =>

The Mapnik version already exists in gpsVP but it is a good simple example:

[Tiled MAP]
gpsVPVersionMin=0.4.15
Filename=x=%X&y=%Y.png
URL=http://tile.openstreetmap.org/%ZOOM_00/%X/%Y.png

The Osmarender version is the same map with another rendering. To display it in gpsVP use following configuration file:

[Tiled MAP]
gpsVPVersionMin=0.4.15
Filename=x=%X&y=%Y.png
URL=http://tah.openstreetmap.org/Tiles/tile/%ZOOM_00/%X/%Y.png

WMS-Server with 2 maps depending on the zoom level: Bavaria hiking map

The "Bayerische Vermessungsverwaltung" has a WMS-Server with topographic maps (1:50 000 and 1:500 000) of Bavaria that are free for personal use.

<= Map 1:500 000 ; Map 1:50 000 =>

With the following configuration file you can use the maps in gpsVP:

[Tiled MAP]
gpsVPVersionMin=0.4.15
ZoomOne10=UK500
ZoomOne11=UK500
ZoomOne12=UK500
ZoomOne13=UK500
ZoomOne14=UK500
ZoomOne15=TOP50
ZoomOne16=TOP50
ZoomOne17=TOP50
ZoomOne18=TOP50
DemoPointLon=11.04791164
DemoPointLat=47.43018866
DemoPointZoomOne=16

[TOP50]
Filename=top50-x=%X&y=%Y&zoom=%ZOOM_17.jpg
URL=http://www.geodaten.bayern.de/ogc/getogc.cgi?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=TK50&STYLES=default&FORMAT=image/jpeg&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=%LONG1,%LAT1,%LONG2,%LAT2&WIDTH=256&HEIGHT=256&reaspect=false

[UK500]
Filename=uk500-x=%X&y=%Y&zoom=%ZOOM_17.jpg
URL=http://www.geodaten.bayern.de/ogc/getogc.cgi?&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=UK500&STYLES=default&FORMAT=image/jpeg&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=%LONG1,%LAT1,%LONG2,%LAT2&WIDTH=256&HEIGHT=256&reaspect=false

For more explanations see UsingWMSServers.

File based map: Using the cache of Googleak

NB: gpsVP can also download tiles, see How to start a raster maps bulk downloading in the FAQ.

Googleak is a software with a quite user friendly interface to download tiles on your PC. The tiles in the cache of Googleak can be used in gpsVP simply by adding a short configuration file.

For example to use the Yahoo Maps cache of Googleak:

  • Copy the Googleak folder tiles\yahoo\map to your gpsVP cache.
  • Rename it to YahooMaps
  • Add the following file called mapcfg.ini to the folder:
  • [Tiled MAP]
    gpsVPVersionMin=0.4.15
    Filename=%Y
    Subpath=%ZOOM_01/%X
    URL=  
  • That's it. Now just start gpsVP and choose the raster map YahooMaps.

File based map: JTileDownloader

JTileDownloader is a tile downloader for OpenStreetMap.

Fridolin reported on the discussion group that following configuration file is needed to use the downloaded tiles with gpsVP:

[Tiled MAP]
gpsVPVersionMin=0.4.15
Filename=%Y.png
Subpath=%ZOOM_00/%X

File based map: Using the cache of PDA Tilemanager

PDA TileManager is a software which can download tiles along a gpx track, within a circular area or within a manually entered area. It works directly on the PDA or on the PC. The maps are configurable through an xml file.

Here the configuration file needed to use one of these maps with gpsvp:

[Tiled MAP]
gpsVPVersionMin=0.4.17
Filename=%Y.png
Subpath=%ZOOM_00/%X

NB: you can also configure an URL to be able to download tiles as well with pda tilemanager as with gpsvp (take the urlPattern of pda tilemanager and replace $z through %ZOOM_00, $x trough %X and $y through %Y)

Tile Server with "qrst"-URL: NOAA nautical charts

The NOAA raster nautical charts can apparently be downloaded here as GeoTiff for personal use, so that it should possible to cut them for use with gpsVP using GDAL2tiles.

<= two different scales of the map =>

But there are also available as Google Maps Overlay here or here.

Following configuration permits to display the overlay in gpsVP:

Second version, which works with gpsVP 0.4.18 or newer but which works with all zoom levels (the first version couldn't display anything finer than zoom 11)

[Tiled MAP]
gpsVPVersionMin=0.4.17
Filename=%QRST.png
URL=http://tiles5.geogarage.com/noaa/%6QRST/%QRST.png
ZoomOne12=NOAA_12_18
ZoomOne13=NOAA_12_18
ZoomOne14=NOAA_12_18
ZoomOne15=NOAA_12_18
ZoomOne16=NOAA_12_18
ZoomOne17=NOAA_12_18
ZoomOne18=NOAA_12_18
DemoPointLon=-75.10237
DemoPointLat=38.79779
DemoPointZoomOne=17

[NOAA_12_18]
Filename=%QRST.png
URL=http://tiles5.geogarage.com/noaa/%6QRST/%6,7QRST/%QRST.png

(I put a "demo" point on the east coast. If you can't find the map just click context menu/raster map/go to demo point. But note that the map also cover the west coast of the USA)


Comment by gv3416, Jan 24, 2009

Sounds very nice and was, I think, a lot of work. I am going to try it.


Sign in to add a comment
Hosted by Google Code