-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from joukewitteveen/properties
Improved GPX property support
- Loading branch information
Showing
4 changed files
with
198 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0"?> | ||
<!-- GPX sample. X/MIT licence --> | ||
<gpx creator="E. Rouault" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> | ||
<wpt lat="0" lon="1"> | ||
<ele>2</ele> | ||
<name>waypoint name</name> | ||
<cmt>waypoint comment</cmt> | ||
<desc>waypoint description</desc> | ||
<src>waypoint source</src> | ||
<link href="href"><text>text</text><type>type</type></link> | ||
<link href="href2"><text>text2</text><type>type2</type></link> | ||
<link href="href3"><text>text3</text><type>type3</type></link> | ||
<time>2007-11-25T17:58:00+01:00</time> | ||
<extensions></extensions> | ||
</wpt> | ||
<wpt lat="3" lon="4"/> | ||
<rte> | ||
<name>route name</name> | ||
<rtept lat="5" lon="6"> | ||
<ele>7</ele> | ||
<name>route point name</name> | ||
<time>2007-11-25T17:58:00Z</time> | ||
</rtept> | ||
<rtept lat="8" lon="9"> | ||
<ele>10</ele> | ||
</rtept> | ||
<rtept lat="11" lon="12"> | ||
<ele>13</ele> | ||
</rtept> | ||
</rte> | ||
<rte> | ||
<name>empty route</name> | ||
</rte> | ||
<trk> | ||
<name>track name</name> | ||
<trkseg> | ||
<trkpt lat="14" lon="15"> | ||
<ele>16</ele> | ||
<name>track point name</name> | ||
</trkpt> | ||
<trkpt lat="17" lon="18"> | ||
<ele>19</ele> | ||
</trkpt> | ||
</trkseg> | ||
<trkseg> | ||
<trkpt lat="20" lon="21"> | ||
<ele>22</ele> | ||
</trkpt> | ||
<trkpt lat="23" lon="24"> | ||
<ele>25</ele> | ||
</trkpt> | ||
</trkseg> | ||
</trk> | ||
<trk> | ||
<name>empty track</name> | ||
</trk> | ||
<trk> | ||
<name>empty track 2</name> | ||
<trkseg> | ||
</trkseg> | ||
</trk> | ||
</gpx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "track name" | ||
}, | ||
"geometry": { | ||
"type": "MultiLineString", | ||
"coordinates": [ | ||
[ | ||
[ | ||
15, | ||
14, | ||
16 | ||
], | ||
[ | ||
18, | ||
17, | ||
19 | ||
] | ||
], | ||
[ | ||
[ | ||
21, | ||
20, | ||
22 | ||
], | ||
[ | ||
24, | ||
23, | ||
25 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "route name", | ||
"time": "2007-11-25T17:58:00Z" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
6, | ||
5, | ||
7 | ||
], | ||
[ | ||
9, | ||
8, | ||
10 | ||
], | ||
[ | ||
12, | ||
11, | ||
13 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "waypoint name", | ||
"cmt": "waypoint comment", | ||
"desc": "waypoint description", | ||
"time": "2007-11-25T17:58:00+01:00", | ||
"links": [ | ||
{ | ||
"text": "text", | ||
"type": "type", | ||
"href": "href" | ||
}, | ||
{ | ||
"text": "text2", | ||
"type": "type2", | ||
"href": "href2" | ||
}, | ||
{ | ||
"text": "text3", | ||
"type": "type3", | ||
"href": "href3" | ||
} | ||
], | ||
"sym": "" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
1, | ||
0, | ||
2 | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"sym": "" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
4, | ||
3 | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters