我一直在使用 Android 上的 Google“我的曲目”并将曲目导入 Google 地球。当我这样做时,我会在顶部看到时间栏,并且赛道会在你驾驶它时播放,就像你的赛道动画一样。我想删除该曲目的时间方面以及您在该曲目中所做的点的时间方面。
我进入 KML 文件,发现每个点都有一个时间戳。我一直在尝试首先使用以下方法删除负责实际轨道时间方面的元素:
xmlstarlet ed -d "kml/Document/Placemark/gx:MultiTrack/gx:Track/when" text.kml
至于地标,如果我能修正语法,我会假设这个过程是相似的。任何帮助将不胜感激。
Kml 结构如下,该元素是我要删除的元素,不确定 Google 地球是否会对那里没有元素或只是让它为空白感到满意。
xmlstarlet el -u text.kml
kml
kml/Document
kml/Document/Folder
kml/Document/Folder/Placemark
kml/Document/Folder/Placemark/Point
kml/Document/Folder/Placemark/Point/coordinates
kml/Document/Folder/Placemark/TimeStamp
kml/Document/Folder/Placemark/TimeStamp/when
kml/Document/Folder/Placemark/description
kml/Document/Folder/Placemark/name
kml/Document/Folder/Placemark/styleUrl
kml/Document/Folder/name
kml/Document/Folder/open
kml/Document/Placemark
kml/Document/Placemark/ExtendedData
kml/Document/Placemark/ExtendedData/Data
kml/Document/Placemark/ExtendedData/Data/value
kml/Document/Placemark/Point
kml/Document/Placemark/Point/coordinates
kml/Document/Placemark/TimeStamp
kml/Document/Placemark/TimeStamp/when
kml/Document/Placemark/description
kml/Document/Placemark/gx:MultiTrack
kml/Document/Placemark/gx:MultiTrack/altitudeMode
kml/Document/Placemark/gx:MultiTrack/gx:Track
kml/Document/Placemark/gx:MultiTrack/gx:Track/ExtendedData
kml/Document/Placemark/gx:MultiTrack/gx:Track/ExtendedData/SchemaData
kml/Document/Placemark/gx:MultiTrack/gx:Track/gx:coord
kml/Document/Placemark/gx:MultiTrack/gx:Track/when
kml/Document/Placemark/gx:MultiTrack/gx:interpolate
kml/Document/Placemark/name
kml/Document/Placemark/styleUrl
kml/Document/Schema
kml/Document/Schema/gx:SimpleArrayField
kml/Document/Schema/gx:SimpleArrayField/displayName
kml/Document/Style
kml/Document/Style/IconStyle
kml/Document/Style/IconStyle/Icon
kml/Document/Style/IconStyle/Icon/href
kml/Document/Style/IconStyle/hotSpot
kml/Document/Style/IconStyle/scale
kml/Document/Style/LineStyle
kml/Document/Style/LineStyle/color
kml/Document/Style/LineStyle/width
kml/Document/atom:author
kml/Document/atom:author/atom:name
kml/Document/name
kml/Document/open
kml/Document/visibility