Support KML 2.3 format to import tracks properly #4083

Open
opened 2022-12-15 09:49:28 +00:00 by biodranik · 3 comments
biodranik commented 2022-12-15 09:49:28 +00:00 (Migrated from github.com)

OM now supports KML 2.2. KML 2.3 is already supported in some apps like OpenTracks.

  1. Looks like at minimum we need to support Track and Multitrack.
  2. Track points timestamps should also be supported/saved, and then exported (if they're present), to properly support #4067 GPX export. At least the code should keep in mind that option for the next steps.
  3. OpenTracks also saves accuracy and speed as extended data. That can be useful too for the future for different purposes, including traffic info if we support it someday.

The main KML enhancements provided in version 2.3 are:

  1. Addition of a new feature, KML Tour, which enables a user to specify aspects of a controlled virtual flight through a series of geographic locations, including speed, mode of flight (smooth or bounce), sound tracks and how KML features are updated throughout the tour.
  2. Addition of new geometries: Track and MultiTrack. A KML Track can capture and display the path and other aspects of a moving object over a specified period of time.
  3. Enhancements to KML’s Extension Mechanism, allowing for the direct use of XML content from third-party schemas. KML 2.3 is now based on XML Schema 1.1 enabling authors of KML Application Profile extensions to experimentally add foreign element and attribute content interleaved among existing KML elements.

Also see some highlighted changes: http://kml4earth.appspot.com/kmlErrata.html
KML Schema http://schemas.opengis.net/kml/2.3/ogckml23.xsd

OM now supports [KML 2.2](https://developers.google.com/kml/documentation/kmlreference). KML 2.3 is already supported in some apps like OpenTracks. 1. Looks like at minimum we need to support [Track](http://docs.opengeospatial.org/is/12-007r2/12-007r2.html#611) and [Multitrack](http://docs.opengeospatial.org/is/12-007r2/12-007r2.html#638). 2. Track points timestamps should also be supported/saved, and then exported (if they're present), to properly support #4067 GPX export. At least the code should keep in mind that option for the next steps. 3. OpenTracks also saves accuracy and speed as extended data. That can be useful too for the future for different purposes, including traffic info if we support it someday. > The main [KML enhancements](https://www.ogc.org/pressroom/pressreleases/2237) provided in version 2.3 are: > 1. Addition of a new feature, KML Tour, which enables a user to specify aspects of a controlled virtual flight through a series of geographic locations, including speed, mode of flight (smooth or bounce), sound tracks and how KML features are updated throughout the tour. > 2. Addition of new geometries: Track and MultiTrack. A KML Track can capture and display the path and other aspects of a moving object over a specified period of time. > 3. Enhancements to KML’s Extension Mechanism, allowing for the direct use of XML content from third-party schemas. KML 2.3 is now based on XML Schema 1.1 enabling authors of KML Application Profile extensions to experimentally add foreign element and attribute content interleaved among existing KML elements. Also see some highlighted changes: http://kml4earth.appspot.com/kmlErrata.html KML Schema http://schemas.opengis.net/kml/2.3/ogckml23.xsd
biodranik commented 2022-12-15 09:59:03 +00:00 (Migrated from github.com)
Simple track example https://github.com/opengeospatial/ets-kml2/blob/master/src/test/resources/kml23/Placemark-Track-1.xml
Owner

Done? @vng

Done? @vng
vng commented 2022-12-18 07:20:55 +00:00 (Migrated from github.com)

1 - Done
2, 3 - are serious tasks that need Core structures review.

1 - Done 2, 3 - are serious tasks that need Core structures review.
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#4083
No description provided.