[Marble-commits] KDE/kdeedu/marble
Bastian Holst
bastianholst at gmx.de
Wed Aug 26 23:18:34 CEST 2009
SVN commit 1016046 by bholst:
* Correction and TagHandlers for kml-Tag <LatLonAltBox>
* Added kml file to test Region.
A examples/kml/NewYorkRegion.kml
M +1 -1 src/lib/geodata/handlers/kml/KmlEastTagHandler.cpp
M +1 -1 src/lib/geodata/handlers/kml/KmlNorthTagHandler.cpp
M +1 -1 src/lib/geodata/handlers/kml/KmlSouthTagHandler.cpp
M +1 -1 src/lib/geodata/handlers/kml/KmlWestTagHandler.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlEastTagHandler.cpp #1016045:1016046
@@ -31,7 +31,7 @@
if( parentItem.represents( kmlTag_LatLonAltBox ) ) {
float east = parser.readElementText().trimmed().toFloat();
- parentItem.nodeAs<GeoDataLatLonAltBox>()->setEast( east );
+ parentItem.nodeAs<GeoDataLatLonAltBox>()->setEast( east, GeoDataCoordinates::Degree );
#ifdef DEBUG_TAGS
qDebug() << "Parsed <" << kmlTag_east << "> containing: " << east
<< " parent item name: " << parentItem.qualifiedName().first;
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlNorthTagHandler.cpp #1016045:1016046
@@ -31,7 +31,7 @@
if( parentItem.represents( kmlTag_LatLonAltBox ) ) {
float north = parser.readElementText().trimmed().toFloat();
- parentItem.nodeAs<GeoDataLatLonAltBox>()->setNorth( north );
+ parentItem.nodeAs<GeoDataLatLonAltBox>()->setNorth( north, GeoDataCoordinates::Degree );
#ifdef DEBUG_TAGS
qDebug() << "Parsed <" << kmlTag_north << "> containing: " << north
<< " parent item name: " << parentItem.qualifiedName().first;
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlSouthTagHandler.cpp #1016045:1016046
@@ -31,7 +31,7 @@
if( parentItem.represents( kmlTag_LatLonAltBox ) ) {
float south = parser.readElementText().trimmed().toFloat();
- parentItem.nodeAs<GeoDataLatLonAltBox>()->setSouth( south );
+ parentItem.nodeAs<GeoDataLatLonAltBox>()->setSouth( south, GeoDataCoordinates::Degree );
#ifdef DEBUG_TAGS
qDebug() << "Parsed <" << kmlTag_south << "> containing: " << south
<< " parent item name: " << parentItem.qualifiedName().first;
--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/kml/KmlWestTagHandler.cpp #1016045:1016046
@@ -31,7 +31,7 @@
if( parentItem.represents( kmlTag_LatLonAltBox ) ) {
float west = parser.readElementText().trimmed().toFloat();
- parentItem.nodeAs<GeoDataLatLonAltBox>()->setWest( west );
+ parentItem.nodeAs<GeoDataLatLonAltBox>()->setWest( west, GeoDataCoordinates::Degree );
#ifdef DEBUG_TAGS
qDebug() << "Parsed <" << kmlTag_west << "> containing: " << west
<< " parent item name: " << parentItem.qualifiedName().first;
More information about the Marble-commits
mailing list