Marble: KML Camera Handler and Writer
completed by: Mayank Madan
mentors: Torsten Rahn, René Küttner, Dennis Nienhüser
Write a handler and a writer for the KML Camera tag.
- In src/lib/geodata/data, create a class GeoDataCamera which inherits the existing GeoDataAbstractView. It should have getters/setters for longitude, latitude, altitude, altitudeMode, heading, tilt and roll as shown in https://developers.google.com/kml/documentation/kmlreference#camera
- In src/lib/geodata/handlers/kml, create a KmlCameraTagHandler class to parse the information and create/fill the GeoDataCamera. You need to adjust the existing KmlAltitudeTagHandler, KmlLatitudeTagHandler, KmlLongitudeTagHandler, KmlAltitudeModeTagHandler and create new KmlHeadingTagHandler, KmlTilTagHandler and KmlRollTagHandler classes.
- In src/lib/geodata/writers/kml, create a KmlCameraTagWriter and have it write the information of a GeoDataCamera.
Further information:
- https://developers.google.com/kml/documentation/kmlreference
- http://marble.kde.org/kml-guide.php
- http://marble.kde.org/sources.php
- #marble IRC channel in Freenode