<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>仕様書</h1><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> (<time>2014-08-07 02:03:14 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.topografix.com/GPX/1/1/gpx.xsd">http://www.topografix.com/GPX/1/1/gpx.xsd</anchor-external></li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> (<time>2014-08-07 02:03:22 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.topografix.com/GPX/gpx_modified/0/1/gpx_modified.xsd">http://www.topografix.com/GPX/gpx_modified/0/1/gpx_modified.xsd</anchor-external></li></ul></refs></section><section><h1>意味</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <code>wpt<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">wpt (GPX)</title></code>, <code>rtept</code>, <code>trkpt</code> 各<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>では、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>の「作成・変更時刻」とされています。 <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;8</anchor-internal></src></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> <code>pt<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">pt (GPX)</title></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>では、「記録時刻」とされています。 <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;8</anchor-internal></src></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> <code class="XMLe" xml:lang="en">metadata<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">metadata (GPX)</title></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>では、
「ファイル作成時刻」とされています。 <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;8</anchor-internal></src></p></section><section><h1>構文</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <code>xs:dateTime</code> でなければなりません <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;1</anchor-internal></src>。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 巷に流通する <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">GPX</anchor> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ファイル</anchor>では、なぜか<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">空文字列</anchor>になっていることもあります。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[16]</anchor-end> 
実装によっては勝手に桁数の制約を課しています。
<sw-see xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"> <anchor>xs:dateTime</anchor> </sw-see></p></section><section><h1>文脈</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 次の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>で使えます。<figure class="short list"><ul><li><code class="XMLe" xml:lang="en">wpt</code></li><li><code class="XMLe" xml:lang="en">rte</code></li><li><code class="XMLe" xml:lang="en">rtept</code></li><li><code class="XMLe" xml:lang="en">trkpt</code></li><li><code class="XMLe" xml:lang="en">pt</code></li><li><code class="XMLe" xml:lang="en">metadata<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">metadata (GPX)</title></code></li></ul></figure></p></section><section><h1><code class="XMLe" xml:lang="en">time</code> 要素 (<code class="URI" xml:lang="en">http://www.topografix.com/GPX/gpx_modified/0/1</code> 名前空間)</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">修正時刻</anchor>を表します <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;8</anchor-internal></src>。</p><section><h1>内容</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> <code>utcDateTimeType</code> でなければなりません <src xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;8</anchor-internal></src>。</p></section><section><h1>文脈</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <code class="XMLe" xml:lang="en">metadata<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">metadata (GPX)</title></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>の
<code class="XMLe" xml:lang="en">extensions<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">extensions (GPX)</title></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>で使われます。</p></section><section><h1>メモ</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="en">geotools-2.7.x/sample_gpx_file_02.gpx at master · boundlessgeo/geotools-2.7.x</cite>
(<time>2016-04-09 20:38:21 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/boundlessgeo/geotools-2.7.x/blob/master/modules/unsupported/gpx2/test/org/geotools/gpx2/resources/sample_gpx_file_02.gpx">https://github.com/boundlessgeo/geotools-2.7.x/blob/master/modules/unsupported/gpx2/test/org/geotools/gpx2/resources/sample_gpx_file_02.gpx</anchor-external></figcaption><blockquote><p>&lt;metadata&gt;</p><p>&lt;bounds minlat=&quot;37.92682171&quot; minlon=&quot;-121.34249211&quot; maxlat=&quot;37.99149514&quot; maxlon=&quot;-121.29680873&quot;/&gt;</p><p>&lt;extensions&gt;</p><p>&lt;time xmlns=&quot;http://www.topografix.com/GPX/gpx_modified/0/1&quot;&gt;2008-10-28T21:33:12.596Z&lt;/time&gt;</p><p>&lt;/extensions&gt;</p><p>&lt;/metadata&gt;</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <cite>Using Google Map Polygons</cite>
(<time>2016-04-09 20:43:06 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://devnet.logianalytics.com/rdPage.aspx?rdReport=Article&amp;dnDocID=2185">http://devnet.logianalytics.com/rdPage.aspx?rdReport=Article&amp;dnDocID=2185</anchor-external></figcaption><blockquote><p>&lt;metadata&gt;</p><p>&lt;bounds minlat=&quot;24.54470100&quot; minlon=&quot;-87.63493800&quot; maxlat=&quot;31.00088800&quot; maxlon=&quot;-80.03136200&quot;/&gt;</p><p>&lt;extensions&gt;</p><p>&lt;time xmlns=&quot;http://www.topografix.com/GPX/gpx_modified/0/1&quot;&gt;2009-04-20T19:40:01.535Z&lt;/time&gt;</p><p>&lt;/extensions&gt;</p><p>&lt;/metadata&gt;</p></blockquote></figure></section></section><section><h1>メモ</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end> <cite xml:lang="ja">GPXファイルの時刻調整 - ヤマレコ</cite>
( (<time>2016-06-14 01:58:32 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.yamareco.com/modules/yamanote/detail.php?nid=812">http://www.yamareco.com/modules/yamanote/detail.php?nid=812</anchor-external></figcaption><blockquote><p>調べてみると、どうやら基準時間の違いらしい。</p><p>RunKeeperの場合は日本ローカル時間</p><p>ヤマレコの場合はグリニッジ標準時</p><p>ここで9時間の時差が生まれている。</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end> <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;14</anchor-internal> で提供されているソースコードを見ると、 <code>Z</code> なのに実際は9時間ずれている模様。</p></section></body></html>