[Marble-commits] KDE/kdeedu/marble/data/placemarks

Dennis Nienhüser earthwings at gentoo.org
Sat Dec 11 18:01:57 CET 2010


SVN commit 1205576 by nienhueser:

Add a cityplacemarks cache file that only contains cities with a population of one million or more. It is meant to be used on less capable devices where the current approach to determine which placemarks needs to be drawn takes considerable time.

 M  +7 -0      HOWTO-cities.txt  
 A             cityplacemarks_large_population.cache  


--- trunk/KDE/kdeedu/marble/data/placemarks/HOWTO-cities.txt #1205575:1205576
@@ -4,10 +4,17 @@
 All other steps are optional and can be done by one of our programmers:
 
 1. Compile marble/tools/asc2kml by executing "qmake-qt4 && make"
+
 2. Then execute the resulting binary:
 
 tackat at tackat-laptop:~/marble/tools/asc2kml$ ./asc2kml -o ~/marble/data/placemarks/cityplacemarks.kml ~/marble/data/placemarks/cities.txt  ~/marble/data/placemarks/statecodes.txt ~/marble/data/placemarks/timeZones.txt
 
+If you're interested only in the n cities with the highest population, you can generate a modified cities.txt like this (here n=1000):
+
+tackat at tackat-laptop:~$ sort -t"$(echo -e "\t")" -n -k 15 cities.txt | tail -n 1000 > cities_largest_1000.txt
+
+Then use cities_largest_1000.txt instead of cities.txt in the asc2kml call above.
+
 3. Create the placemark-directory in your home directory if it doesn't exist already.
 
 tackat at tackat-laptop:~$ mkdir ~/.local/share/marble/placemarks


More information about the Marble-commits mailing list