[Marble-commits] KDE/kdeedu/marble/src/plugins/render/osmannotate/osm

Andrew Manson g.real.ate at gmail.com
Fri Jul 17 18:42:04 CEST 2009


SVN commit 998437 by mansona:

more classes needed to parse and show an OSM way on marble. Having some 
problems using the GeoParser Stack System with non GeoData Elements


 M  +1 -0      OsmElementDictionary.cpp  
 M  +1 -0      OsmElementDictionary.h  
 A             OsmNdTagHandler.cpp   [License: LGPL]
 A             OsmNdTagHandler.h   [License: LGPL]
 A             OsmWayGraphicsItem.cpp   [License: LGPL]
 A             OsmWayGraphicsItem.h   [License: LGPL]
 M  +5 -0      OsmWayTagHandler.cpp  


--- trunk/KDE/kdeedu/marble/src/plugins/render/osmannotate/osm/OsmElementDictionary.cpp #998436:998437
@@ -20,6 +20,7 @@
     const char* osmTag_bounds = "bounds";
     const char* osmTag_node = "node";
     const char* osmTag_way = "way";
+    const char* osmTag_nd = "nd";
 
 }
 
--- trunk/KDE/kdeedu/marble/src/plugins/render/osmannotate/osm/OsmElementDictionary.h #998436:998437
@@ -21,6 +21,7 @@
     extern const char* osmTag_bounds;
     extern const char* osmTag_node;
     extern const char* osmTag_way;
+    extern const char* osmTag_nd;
 
 }
 
--- trunk/KDE/kdeedu/marble/src/plugins/render/osmannotate/osm/OsmWayTagHandler.cpp #998436:998437
@@ -12,6 +12,8 @@
 
 #include "GeoParser.h"
 #include "OsmElementDictionary.h"
+#include "OsmWayGraphicsItem.h"
+#include <QDebug>
 
 namespace Marble
 {
@@ -24,6 +26,9 @@
 
 GeoNode* OsmWayTagHandler::parse( GeoParser& parser ) const
 {
+    OsmWayGraphicsItem* way = new OsmWayGraphicsItem();
+    qDebug() << ((GeoNode*)(way));
+    return ((GeoNode*)(way));
 }
 
 }


More information about the Marble-commits mailing list