[Marble-devel] Review Request 116831: Read/write gx:altitudeMode for KML LookAt tags

Cruceru Calin-Cristian crucerucalincristian at gmail.com
Mon Mar 17 19:59:05 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116831/
-----------------------------------------------------------

(Updated March 17, 2014, 9:59 p.m.)


Review request for Marble.


Changes
-------

Added constructor to GeoDataAbstractView and comparison between objects' altitudeMode in GeoDataCamera::operator==.


Bugs: 332108
    http://bugs.kde.org/show_bug.cgi?id=332108


Repository: marble


Description
-------

The gx:altitudeMode can now be read from and written to KML files inside the LookAt tag.
- Moved the altitudeMode getter and setter from GeoDataCamera up to GeoDataAbstractView;
- Changed KmlaltitudeModeTagHandler and KmlGxAltitudeModeTagHandler to check for GeoDataAbstractView instead of GeoDataCamera;
- Now the altitude mode in KmlLookAtTagWriter is written just like in KmlCameraTagWriter;
- Added a <gx:altitudeMode>clampToSeaFloor</gx:altitudeMode> to tests/data/LookAtTest.kml.


Diffs (updated)
-----

  src/lib/marble/geodata/data/GeoDataAbstractView.h b136e4f 
  src/lib/marble/geodata/data/GeoDataAbstractView.cpp ca44659 
  src/lib/marble/geodata/data/GeoDataCamera.h 2aa2578 
  src/lib/marble/geodata/data/GeoDataCamera.cpp de5191d 
  src/lib/marble/geodata/data/GeoDataCamera_p.h 37ced50 
  src/lib/marble/geodata/handlers/kml/KmlAltitudeModeTagHandler.cpp 2968aea 
  src/lib/marble/geodata/handlers/kml/KmlGxAltitudeModeTagHandler.cpp 00785d3 
  src/lib/marble/geodata/writers/kml/KmlLookAtTagWriter.cpp 046a3cc 
  tests/data/LookAtTest.kml 60ce73c 

Diff: https://git.reviewboard.kde.org/r/116831/diff/


Testing
-------

I tested it using tests/TestGeoDataWriter and it works as expected.


Thanks,

Cruceru Calin-Cristian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20140317/f0aaf9b1/attachment.html>


More information about the Marble-devel mailing list