[Marble-commits] KDE/kdeedu/marble/src/lib
Thibaut Gridel
tgridel at free.fr
Sat Jan 15 14:34:53 CET 2011
SVN commit 1214592 by tgridel:
FileLoader: provide SmallCity attribute to many PPL* tags
M +8 -1 FileLoader.cpp
--- trunk/KDE/kdeedu/marble/src/lib/FileLoader.cpp #1214591:1214592
@@ -548,7 +548,14 @@
else if ( placemark->role() == "O" ) placemark->setVisualCategory( GeoDataPlacemark::Ocean );
else if ( placemark->role() == "S" ) placemark->setVisualCategory( GeoDataPlacemark::Nation );
else
- if ( placemark->role()=="PPL" ) placemark->setVisualCategory(
+ if ( placemark->role()=="PPL"
+ || placemark->role()=="PPLF"
+ || placemark->role()=="PPLG"
+ || placemark->role()=="PPLL"
+ || placemark->role()=="PPLQ"
+ || placemark->role()=="PPLR"
+ || placemark->role()=="PPLS"
+ || placemark->role()=="PPLW" ) placemark->setVisualCategory(
( ( GeoDataPlacemark::GeoDataVisualCategory )( (int)( GeoDataPlacemark::SmallCity )
+ ( placemark->popularityIndex() -1 ) / 4 * 4 ) ) );
else if ( placemark->role() == "PPLA" ) placemark->setVisualCategory(
More information about the Marble-commits
mailing list