Global Positioning System Reference
In-Depth Information
The process takes about 20 minutes (on the known hardware refer-
ence) and the subfolder osm should be filled with OSM files similar to
Table 7.3.
2. Open
the
Kosmos
GUI: ../tools/Kosmos-2.5.405.6/Gui/Kosmos
.Gui.exe
(a) open the Kosmos project file ../products/RGB/kosm/RGB.kpr
The Kosmos GUI lists all expected project les in the \Project Ex-
plorer." The le names are grayed and the \Error List" shows problems
encountered when loading the les. Right click on the folder \OSM Files"
and open all the layers compiled with createRGB.bat . 10 Or open the files
one-by-one to watch the drawing of each layer.
Now click on RGB.kpr in the \Project Explorer." The \Properties" win-
dow shows a single line \Rendering Rules." Enter the full absolute path to
the file ../kosm/RGBrules.txt . Save and refresh the project.
The file RGBrules.txt defines the rendering rules. Open the file in a text
editor and look for the (single) line:
| River || {{IconWay}} || {{tag|waterway|river}} |
| Polyline (MinZoom=5, Color=lightblue,
Width=5:1;10:2;17:14, Curved=true) || ||
Change the color lightblue to black , refresh the project, and look for black
rivers.
Take some time to go through the \WMS" and \Relief" menus. You
will easily find out how to add elevation contours, slope shading, a shaded
relief, or a satellite image. These features provide instant feedback about
the precision of the map. The file ../RGB/kosm/RGB.png provides a possible
appearance. Now, save the project.
The project XML file RGB.kpr consists of the above steps. This process
could be automated by putting a template.kpr in the map compiler and
filling in paths and filenames via a stream editor. The problem with that
is that the paths have to be absolute in the project file and can not simply
be moved to another directory with different paths.
After this manual design process, the project can be used for the auto-
mated production of map tiles with a (single) command line like 11
D:\tools\Kosmos-2.5.405.6\Console\Kosmos.Console.exe
tilegen D:\products\RGB\kosm\RGB.kpr
48.89 11.58 49.4 12.57 8 12 -ts Tiles
Note that the batch file is preset to render the area clipped for RGB with
the zoom levels 8 through 12. The duration of the tile rendering depends on
10 Do not add the source file RGB.osm !
11 See last line of createRGB.bat .
 
Search WWH ::




Custom Search