[Marble-bugs] [marble] [Bug 320009] New: Support reading and writing gx:altitudeMode KML tags

Dennis Nienhüser earthwings at gentoo.org
Sun May 19 12:19:16 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=320009

            Bug ID: 320009
           Summary: Support reading and writing gx:altitudeMode KML tags
    Classification: Unclassified
           Product: marble
           Version: 1.6.0 (KDE 4.11.0)
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: task
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: earthwings at gentoo.org

We support the <altitudeMode> tag currently, but not <gx:altitudeMode> which
extends <altitudeMode> by two more values.
https://developers.google.com/kml/documentation/kmlreference#gxaltitudemode

- Extend the AltitudeMode enum in src/lib/MarbleGlobal.h by the two additional
values
- Add a KmlGxAltitudeModeTagHandler that behaves like the existing
KmlAltitudeModeTagHandler, but listens to the gx: namespace and parses the two
additional values also
- Add a KmlAltitudeModelTagWriter which can both write <altitudeMode> and
<gx:altitudeMode>. Have it switch between both based on the enum value to write
- Change KmlCameraTagWriter.cpp, KmlGroundOverlayWriter.cpp,
KmlLatLonAltBoxWriter.cpp and KmlModelTagWriter.cpp to use the new
KmlAltitudeModelTagWriter instead of writing altitudeMode manually
- Add a test .kml file to tests/data/ which has various combinations of
altitudeMode inside and outside the gx namespace with various values. Add the
.kml file to tests/TestGeoDataWriter.cpp and verify it works as extended

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list