Contents |
A map in KGeography is formed at least by two files, one is the image of the map and another is the description of it.
Here you can find a tool made by Yann Verley to help with the maps. To see its usage simply execute it and see the help message, but it basically creates the .kgm from a plain text file and creates a file with the colors it has assigned to each division so you can fill the map according to them.
Its file extension is .kgm It should begin with <map> and end with </map>. Inside of that there should be the following tags:
Each division has these tags:
The color is defined using three tags:
It is convenient to create 2 or 3 false divisions like Water, Frontier and Coast and set them with ignore=yes.
Important: All names (capital and division) must be in English.
The map file is quite simple but laborious to create. It has to be in PNG format. You can find some maps to transform at CIA Reference Maps. If no map fits your needs you can download the world pdf, take a screenshot of it and work from it. Each division in the map should have one and only one color. To achieve this you can use image processing programs like The Gimp and KolourPaint.
If you have used the flag tag you should provide a flag file. They have to be in PNG format and better if they are 300x200 pixels and you provide a SVG file for it. To obtain SVG flags of almost all countries in the world and some other divisions you can consult Sodipodi flags collection.
Before sending your map to me you should test to make sure it does not have errors. To do it you have to do the following:
Once that has been done you should be able to open your map from inside KGeography.
If you don't know which is your $(KDEDIR) typekde4-config --prefixin a shell.