Files
gpx.studio/website/src/lib/docs/zh/gpx.mdx
T

43 lines
2.3 KiB
Plaintext
Raw Normal View History

2024-07-23 17:21:34 +02:00
---
2024-12-28 19:22:36 +01:00
title: GPX 文件格式
2024-07-23 17:21:34 +02:00
---
<script>
2026-11-01 15:41:07 +01:00
import DocsNote from '$lib/components/docs/DocsNote.svelte';
import { Waypoints, Route, MapPin } from '@lucide/svelte';
2024-07-23 17:21:34 +02:00
</script>
# { title }
2026-11-15 11:36:16 +01:00
<a href="https://www.topografix.com/gpx.asp" target="_blank">GPX 文件格式</a> 是应用程序和 GPS 设备之间交换 GPS 数据的一种开放标准。它本质上由一系列 GPS 点组成,用以编码形成一条或多条轨迹,以及兴趣点(可选)。这些连线可以储存为轨迹或路线。
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
还可以包含元数据,其中 **名称(name)** 和 **描述(description)** 字段对用户最有用。
2024-07-23 17:21:34 +02:00
2024-12-28 19:22:36 +01:00
### <Waypoints size="16" class="inline-block" style="margin-bottom: 2px" /> 轨迹、路段和 GPS 点
2024-07-23 17:21:34 +02:00
2026-10-31 18:45:38 +01:00
如上所述,GPX 文件可包含多条 GPS 轨迹。它们按照分层结构组织起来,其中轨迹位于顶层:
2024-07-23 17:21:34 +02:00
2026-10-31 18:45:38 +01:00
- **轨迹** 由一系列不相连的路段组成。它可以包含 **名称**、**描述** 和 **外观属性** 等元数据;
2025-01-09 09:03:18 +01:00
- **路段** 是由一系列 GPS 点组成的连续路径;
2026-10-31 18:45:38 +01:00
- **GPS 点** 主要用来存储一个位置的经纬度,也可包含时间戳和高度信息。一些设备可能还会记录心率、节奏、温度和功率等其他信息;
2024-07-23 17:21:34 +02:00
2026-10-31 18:45:38 +01:00
GPX 文件通常只包含一条轨迹,且该轨迹仅有一个路段。不过这个层级结构支持高级用法,例如用来规划多日旅程且每日可包含多个行程信息。
2024-07-23 17:21:34 +02:00
2026-11-01 15:41:07 +01:00
### <Route size="16" class="inline-block" style="margin-bottom: 2px" /> Routes
2026-11-15 11:36:16 +01:00
**路线**是一个由**路线点**序列组成的单一连续路径。
2026-11-01 15:41:07 +01:00
These are mandatory checkpoints, which correspond to the anchor points of the [routing tool](./toolbar/routing).
2026-11-15 11:36:16 +01:00
两者之间的点只是一条连接路线点的建议路径。像轨迹一样,路线可以有**名称**、**描述**和**路线属性**。
2026-11-01 15:41:07 +01:00
<DocsNote>
2026-11-15 11:36:16 +01:00
现在,大多数应用和 GPS 设备都与轨迹完全兼容,甚至用于导航。
2026-11-01 15:41:07 +01:00
However, some of them only work with routes: in that case, you can [convert](./menu/edit) your tracks to routes, or [create](./menu/file) a route file from the start.
</DocsNote>
2024-12-28 19:22:36 +01:00
### <MapPin size="16" class="inline-block" style="margin-bottom: 2px" /> 兴趣点
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
**兴趣点**(_航点_)用来表示 GPS 设备或数字地图上需要显示的特殊位置。
2024-07-23 17:21:34 +02:00
2025-01-09 09:03:18 +01:00
除坐标外,兴趣点也可包含 **名称** 和 **描述** 信息。