Bug 332259 - Add a KML tag writer for NetworkLinkControl
Summary: Add a KML tag writer for NetworkLinkControl
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.7 (KDE 4.12)
Platform: unspecified Linux
: NOR task
Target Milestone: ---
Assignee: Marek Hakala
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-03-17 19:43 UTC by Dennis Nienhüser
Modified: 2014-04-09 19:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2014-03-17 19:43:40 UTC
Marble has KML tag handlers to parse <NetworkLinkControl> and related child tags, which are represented in a GeoDataNetworkLinkControl. Add a KML tag writer for <NetworkLinkControl> to write back the values.
- Add KmlNetworkLinkControlTagWriter.{h,cpp} to src/lib/marble/geodata/writers/kml/, implement it and add it to CMakeLists.txt in src/lib/marble/geodata/
- Add NetworkLinkControl.kml to tests/data/

See https://developers.google.com/kml/documentation/kmlreference?#networklinkcontrol for reference and examples.

Make sure to compile Marble with the following cmake options enabled: BUILD_MARBLE_TESTS=TRUE, BUILD_MARBLE_TOOLS=TRUE. Execute tests/TestGeoDataWriter and make sure no errors come up. Use tools/kml2kml to analyze errors and fix the tag writers, if needed. Submit a review request at https://git.reviewboard.kde.org with the marble group as reviewers.

Please leave a comment here (e.g. "I want to work on this task.") if you start working on this task to avoid multiple people working on it at the same time.
Comment 1 Marek Hakala 2014-04-09 19:22:48 UTC
https://git.reviewboard.kde.org/r/117343/
Comment 2 Dennis Nienhüser 2014-04-09 19:50:41 UTC
Git commit d9299ef70122fc9f6debc4d5715ac2f712cf9c79 by Dennis Nienhüser, on behalf of Marek Hakala.
Committed on 09/04/2014 at 19:37.
Pushed by nienhueser into branch 'master'.

KML tag writer for NetworkLinkControl

REVIEW: 117343

M  +2    -0    src/lib/marble/geodata/CMakeLists.txt
M  +1    -1    src/lib/marble/geodata/handlers/kml/KmlLinkSnippetTagHandler.cpp
M  +2    -1    src/lib/marble/geodata/handlers/kml/KmlNetworkLinkControlTagHandler.cpp
A  +54   -0    src/lib/marble/geodata/writers/kml/KmlNetworkLinkControlTagWriter.cpp     [License: LGPL]
A  +27   -0    src/lib/marble/geodata/writers/kml/KmlNetworkLinkControlTagWriter.h     [License: LGPL]
A  +35   -0    src/lib/marble/geodata/writers/kml/KmlUpdateTagWriter.cpp     [License: LGPL]
A  +27   -0    src/lib/marble/geodata/writers/kml/KmlUpdateTagWriter.h     [License: LGPL]
A  +16   -0    tests/data/NetworkLinkControl.kml

http://commits.kde.org/marble/d9299ef70122fc9f6debc4d5715ac2f712cf9c79