diff options
author | Hashem Nasarat <hashem@riseup.net> | 2016-02-15 04:58:42 -0500 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-02-22 17:26:14 +0100 |
commit | 03ffba0ab5d1bd3897bd26621a20f05f69e707fb (patch) | |
tree | e1ce99d75d22801fcd0a38985480f74877544743 | |
parent | 4961dc3e48d13c0c675ad7c135419b864813ca55 (diff) | |
download | shared-mime-info-03ffba0ab5d1bd3897bd26621a20f05f69e707fb.tar.gz |
Add GPX mime-type
Add application/gpx+xml as specified at:
http://www.topografix.com/gpx.asp
https://en.wikipedia.org/wiki/GPS_Exchange_Format
https://bugs.freedesktop.org/show_bug.cgi?id=94154
-rw-r--r-- | freedesktop.org.xml.in | 7 | ||||
-rw-r--r-- | tests/list | 2 | ||||
-rw-r--r-- | tests/test.gpx | 27 |
3 files changed, 36 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 9ea2f95c..6014adba 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6208,6 +6208,13 @@ command to generate the output files. <glob pattern="*.geojson"/> <glob pattern="*.geo.json"/> </mime-type> + <mime-type type="application/gpx+xml"> + <_comment>GPX geographic data</_comment> + <acronym>GPX</acronym> + <expanded-acronym>GPS Exchange Format</expanded-acronym> + <sub-class-of type="application/xml"/> + <glob pattern="*.gpx"/> + </mime-type> <mime-type type="application/x-ica"> <_comment>Citrix ICA settings file</_comment> <acronym>ICA</acronym> @@ -475,6 +475,8 @@ googleearth.kml application/vnd.google-earth.kml+xml ox # Created using geojson.io test.geojson application/vnd.geo+json ox test.geo.json application/vnd.geo+json ox +# Copid from https://en.wikipedia.org/wiki/GPS_Exchange_Format +test.gpx ox # Copied from http://bugs.freedesktop.org/show_bug.cgi?id=15260 test.gnd application/gnunet-directory # Copied from https://bugs.freedesktop.org/show_bug.cgi?id=27441 diff --git a/tests/test.gpx b/tests/test.gpx new file mode 100644 index 00000000..8f67d781 --- /dev/null +++ b/tests/test.gpx @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> + +<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" creator="Oregon 400t" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"> + <metadata> + <link href="http://www.garmin.com"> + <text>Garmin International</text> + </link> + <time>2009-10-17T22:58:43Z</time> + </metadata> + <trk> + <name>Example GPX Document</name> + <trkseg> + <trkpt lat="47.644548" lon="-122.326897"> + <ele>4.46</ele> + <time>2009-10-17T18:37:26Z</time> + </trkpt> + <trkpt lat="47.644548" lon="-122.326897"> + <ele>4.94</ele> + <time>2009-10-17T18:37:31Z</time> + </trkpt> + <trkpt lat="47.644548" lon="-122.326897"> + <ele>6.87</ele> + <time>2009-10-17T18:37:34Z</time> + </trkpt> + </trkseg> + </trk> +</gpx> |