KGeography/Making Maps: Difference between revisions

From KDE UserBase Wiki
(Created page with "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. ===Helper tool=== [http://kgeography.berlios.de/gen_map.pl ...")
 
No edit summary
Line 1: Line 1:
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.
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.
===Helper tool===
===Helper tool===
[http://kgeography.berlios.de/gen_map.pl Here] you can find a tool made by Yann Verley to help him with the map of France. To see it's 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 acording to them.
[http://kgeography.berlios.de/gen_map.pl Here] you can find a tool made by Yann Verley to help him with the map of France. 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.
 
===Description file===
Its file extension is .kgm
Should begin with <map> and end with </map>.
Inside of that tags there should be:
* <mapFile> and </mapFile>: the name of the file containing the map image. e.g: europe.png
* <name> and </name>: the name of map. e.g: Europe
* A <division> and </division> for each division in the map.

Revision as of 09:53, 10 March 2011

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.

Helper tool

Here you can find a tool made by Yann Verley to help him with the map of France. 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.

Description file

Its file extension is .kgm Should begin with <map> and end with </map>. Inside of that tags there should be:

  • <mapFile> and </mapFile>: the name of the file containing the map image. e.g: europe.png
  • <name> and </name>: the name of map. e.g: Europe
  • A <division> and </division> for each division in the map.