GpsGate Server supports custom raster maps. The map needs to be in 256*256 pixel large PNG tiles. And the scale and projection must be described in a file named "MapData.xml". Normally GpsTools Studio helps you to accomplish this, which is described in this guide:
But in some cases when the map is very large, it is easier to produce the raster tiles in some other tool. In those case you also need to create MapData.xml manually.
The tiles should have the following file names x_y.png, the upper left tile is named 0_0.png, the most upper tile in the second column is named 1_0.png, the most left tile in the second row is named 0_1.png, increasing x values goes from left to right, increasing y values goes from top to bottom.
The tiles and MapData.xml should then be placed in a separate folder on the server as described in the guide linked to above. How a map with different zoom levels is produces is also described in that guide.
Here is a sample MapData.xml file. Below is each tag explained.
Code: Select all
<?xml version="1.0" ?>
Name - Just any name.
ID - A unique string.
Bitmap - Specifies bitmap size.
TileSize Width / Height - Must be 256
TotalSize Width / Height - Specifies the total size for the map in pixels.
Geo - Specifies the coordinate system used.
Grid / Datum - Projection paramaters. The easiest way to find those are to use GpsTools Studio on a small map, and save it as tiles, then copy those paramaters.
BoundingBox - The geographic size of the map.
MinE / MinN - This is the geographic coordinate for the upper left corner of the map. The unit can be meters or degrees depending on the geo coordinate system used.
MaxE / MaxN - This is the geographic coordinate for the lower right corner of the map.
Projection - Those are the multipliers between pixels and geo coordinates
Type - Should be "Linear". ("Polar" is also supported, but not explained here.)
OrigoE / OrigoN - This is the geographic coordinate for the upper left corner of the map.
DeDx - This is the number of meters (or degrees) per pixel when going from left to right on map.
DeDy - Set to 0. (Only used if map is rotated).
DnDx - Set to 0. (Only used if map is rotated).
DnDy - This is the number of meters (or degrees) per pixel when going from top to bottom.
Please post any questions to the forum, and we'll answer them there: