[Marble-devel] Review Request: GeoData KML and GPX Parser: parse ExtendedData in gx:Track
Niko Sams
niko.sams at gmail.com
Thu Dec 8 18:40:41 UTC 2011
> On Dec. 8, 2011, 12:22 p.m., Javier Becerra Elcinto wrote:
> > src/plugins/runner/gpx/handlers/GPXtrkptTagHandler.cpp, line 61
> > <http://git.reviewboard.kde.org/r/103191/diff/3/?file=42137#file42137line61>
> >
> > Not sure of where (if) you get time information for these coordinates, otherwise you may want to append also the corresponding QDateTime() so that they do not get messed with points with a valid time coordinate that you might add later to the same track? Maybe use addPoint(QDateTime(), coord)? A convenience addPoint(coord) function which sets time to QDateTime() might also be interesting for this case?
I think that won't work because when parsing the trkpt tag I don't know if a time tag will follow, the xml is like that:
<trkpt lat="47.231477033" lon="12.560534449">
<time>2011-06-24T10:33:40Z</time>"
</trkpt>
> On Dec. 8, 2011, 12:22 p.m., Javier Becerra Elcinto wrote:
> > src/lib/geodata/data/GeoDataTrack.cpp, line 229
> > <http://git.reviewboard.kde.org/r/103191/diff/3/?file=42110#file42110line229>
> >
> > Does this work right? shouldn't you be removing elements top-down, so that every element prior to when is removed?
You are right; thanks for the hint.
> On Dec. 8, 2011, 12:22 p.m., Javier Becerra Elcinto wrote:
> > CMakeLists.txt, line 315
> > <http://git.reviewboard.kde.org/r/103191/diff/3/?file=42102#file42102line315>
> >
> > Shouldn't this debug feature by deactivated by default?
Sorry - that slipped into the patch - I had it as uncommited local change in my workingcopy.
Reviewboard should have proper git support like gitorious used to have!
- Niko
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103191/#review8797
-----------------------------------------------------------
On Nov. 26, 2011, 10:53 a.m., Niko Sams wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103191/
> -----------------------------------------------------------
>
> (Updated Nov. 26, 2011, 10:53 a.m.)
>
>
> Review request for Marble.
>
>
> Description
> -------
>
> gx:Track can contain ExtendedData used for embedding eg. heartrate data to a track:
> http://code.google.com/intl/de-DE/apis/kml/documentation/kmlreference.html#gxtrack
>
> This patch implements:
> - the data structure in GeoDataTrack
> - the kml parser for this structure (supporting example files in kml specs)
> - the gpx parser for this structure (supporting files created by garmin devices)
>
> Gpx parser also now handles elevation data.
>
> Gpx parser now creates a GeoDataTrack object (instead of GeoDataLineString)
> (I'm not sure if this change could cause problems)
>
>
> Diffs
> -----
>
> CMakeLists.txt 3857121
> src/lib/.TracksModel.cpp.kate-swp PRE-CREATION
> src/lib/geodata/data/GeoDataExtendedData.h f095cdb
> src/lib/geodata/data/GeoDataExtendedData.cpp 4011240
> src/lib/geodata/data/GeoDataExtendedData_p.h 361e894
> src/lib/geodata/data/GeoDataSimpleArrayData.h PRE-CREATION
> src/lib/geodata/data/GeoDataSimpleArrayData.cpp PRE-CREATION
> src/lib/geodata/data/GeoDataTrack.h 2f0e0c3
> src/lib/geodata/data/GeoDataTrack.cpp c8b5ccf
> src/lib/geodata/data/Serializable.h cfa4b74
> src/lib/geodata/handlers/kml/KmlCoordinatesTagHandler.cpp dce7679
> src/lib/geodata/handlers/kml/KmlElementDictionary.h 624465a
> src/lib/geodata/handlers/kml/KmlElementDictionary.cpp 07f33fd
> src/lib/geodata/handlers/kml/KmlExtendedDataTagHandler.cpp 669fb5e
> src/lib/geodata/handlers/kml/KmlSchemaDataTagHandler.h PRE-CREATION
> src/lib/geodata/handlers/kml/KmlSchemaDataTagHandler.cpp PRE-CREATION
> src/lib/geodata/handlers/kml/KmlSimpleArrayDataTagHandler.h PRE-CREATION
> src/lib/geodata/handlers/kml/KmlSimpleArrayDataTagHandler.cpp PRE-CREATION
> src/lib/geodata/handlers/kml/KmlValueTagHandler.cpp a2e5441
> src/lib/geodata/parser/GeoDataTypes.h fee81bd
> src/lib/geodata/parser/GeoDataTypes.cpp 4443896
> src/plugins/runner/gpx/CMakeLists.txt dae7719
> src/plugins/runner/gpx/GpxParser.cpp 61a749f
> src/plugins/runner/gpx/handlers/GPXElementDictionary.h 37152bd
> src/plugins/runner/gpx/handlers/GPXElementDictionary.cpp 471ad64
> src/plugins/runner/gpx/handlers/GPXTrackPointExtensionTagHandler.h PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXTrackPointExtensionTagHandler.cpp PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXeleTagHandler.h PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXeleTagHandler.cpp PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXextensionsTagHandler.h PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXextensionsTagHandler.cpp PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXhrTagHandler.h PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXhrTagHandler.cpp PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXtimeTagHandler.h PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXtimeTagHandler.cpp PRE-CREATION
> src/plugins/runner/gpx/handlers/GPXtrkptTagHandler.cpp 455e8e1
> src/plugins/runner/gpx/handlers/GPXtrksegTagHandler.cpp 9b1a24e
> src/plugins/runner/gpx/tests/TestTrack.cpp PRE-CREATION
> tests/TestGeoDataTrack.cpp c9f347d
>
> Diff: http://git.reviewboard.kde.org/r/103191/diff/diff
>
>
> Testing
> -------
>
> Unittests included in patch.
>
>
> Thanks,
>
> Niko Sams
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111208/ef204fd4/attachment.html>
More information about the Marble-devel
mailing list