9: 2016-02-10 (水) 12:50:41 yuji ソース
Attached file: Tohoku.poly, Attached file: Kanto.poly, Attached file: Chubu.poly, Attached file: Kinki.poly, Attached file: Chugoku.poly, Attached file: Hokkaido.poly, Attached file: Shikoku.poly, Attached file: Kyushu.poly, Deleted an attach file: shikoku.poly at 2016-02-10 (水) 21:51:25, Deleted an attach file: kyushu.poly at 2016-02-10 (水) 21:51:52, Deleted an attach file: hokkaido.poly at 2016-02-10 (水) 21:52:09
10: 2016-05-19 (木) 04:55:48 yuji ソース
Attached file: shape2osm.py
Line 1: Line 1:
** Locus maps用の地図作成 [#veb1f176] ** Locus maps用の地図作成 [#veb1f176]
-[[Locus map>http://www.locusmap.eu/]]で使用できるベクター日本地図は,Locusアプリのストアからダウンロード出来るんだけど(ファイル3個まで無料),日本全体をカバーするには4個ダウンロードしないとダメなのと,実はLocusストアのベクター日本地図は,ところどころデータが破損していて,正常に地図が表示されない。 :cry: ~ +[[Locus map>http://www.locusmap.eu/]]で使用できるベクター日本地図は,Locusアプリのストアからダウンロード出来るんだけど(LoMapと呼んでいる。ファイル3個まで無料),日本全体をカバーするには4個ダウンロードしないとダメなのと,実はLocusストアのベクター日本地図は,ところどころデータが破損していて,正常に地図が表示されない。 :cry: ~ 
-このことを報告したら,Locusでは新しいベクター地図を用意しているんで,もう少し待ってくれと言っていた。→ ''今(2015/12月),ダウンロード出来る地図は修正されている。''~ +このことを報告したら,Locusでは新しいベクター地図を用意しているんで,もう少し待ってくれと言っていた。→ ''(2015/12月以降,ダウンロード出来る地図は修正されています。''~ 
-また,Locusストアから有償でダウンロードしても地図のバージョンが上がると(更新すると),再度お金を払ってダウンロードする必要がある。+また,Locusストアから有償でダウンロードしても地図のバージョンが上がると(更新すると),再度お金を払って(日本全部で200円程度だが)ダウンロードする必要がある。正常に表示されない地図からのバージョンアップでもお金を払った。((LoMapをダウンロードすると,offileで使えるPOIや住所DBが合わせてダウンロード出来るので,有用ではある。))
なので,[[Locus map>http://www.locusmap.eu/]]で使用できるベクター日本地図がどこかにないのか探すと,以下からダウンロードして使用できた。 なので,[[Locus map>http://www.locusmap.eu/]]で使用できるベクター日本地図がどこかにないのか探すと,以下からダウンロードして使用できた。
Line 10: Line 10:
残念ながら,Mapsforgeの地図には等高線データは含まれていない。また更新頻度は1~2ヶ月ぐらいなので,常に最新とは限らない。~ 残念ながら,Mapsforgeの地図には等高線データは含まれていない。また更新頻度は1~2ヶ月ぐらいなので,常に最新とは限らない。~
それと,日本語ではなく英語になります。 それと,日本語ではなく英語になります。
 +
 +[[locusvectormaps>http://www.locusvectormaps.com/]]~
 +OpenStreetMapから変換した日本全体のベクター地図がダウンロード出来る。~
 +残念ながら,等高線データは含まれていない。更新頻度は毎月1回程度されていて,日本語で表示される。~
 +海は,青く表示できない。
[[OpenAndroMaps>http://www.openandromaps.org/en/]]~ [[OpenAndroMaps>http://www.openandromaps.org/en/]]~
OpenStreetMapから変換した日本全体のベクター地図がダウンロード出来る。~ OpenStreetMapから変換した日本全体のベクター地図がダウンロード出来る。~
-しかもこのデータは,SRTMのデータから作成された等高線がバッチリ入っています。嬉しいことに,日本語で表示するベクター地図もあります。通常はこのベクター地図を利用すれば問題はありません。しかし更新頻度はMapsforgeよりも遅い。+しかもこのデータは,SRTMのデータから作成された等高線がバッチリ入っています。嬉しいことに,日本語で表示するベクター地図もあります。通常はこのベクター地図を利用すれば問題はありません。しかし更新頻度は,Mapsforgeよりも遅い。ところどころ(ローマ字)表記も残っています。
-OpenStreetMapは,自分で自由に地図を編集出来るのが楽しくていいわけです。編集したらすぐそのデータを使いたくなっちゃいます。~+OpenStreetMapは,自分で自由に地図を編集出来るのが楽しくていいわけです。自分で編集したらすぐそのデータを使いたくなっちゃいます。~
そこで,OpenStreetMapの地図データからLocusで使用できるベクター地図を自前で作成することにした。 そこで,OpenStreetMapの地図データからLocusで使用できるベクター地図を自前で作成することにした。
Line 90: Line 95:
- 国土地理院~ - 国土地理院~
[[国土地理院>http://www.gsi.go.jp/kiban/index.html]]から正確な等高線データ(5mまたは10mメッシュ)をダウンロード出来る。~ [[国土地理院>http://www.gsi.go.jp/kiban/index.html]]から正確な等高線データ(5mまたは10mメッシュ)をダウンロード出来る。~
-ファイルフォーマットは,JPGIS(GML)ということだが・・・~+ファイルフォーマットは,JPGIS(GML)ということだが・・・ .osmに変換する方法がわからない。~
- SRTM~ - SRTM~
[[Shuttle Radar Topography Mission(SRTM)>http://www2.jpl.nasa.gov/srtm/]]と呼ばれるスペースシャトルに積み込んだレーダを使って全世界の詳細な立体地形データを作成すること目的としたミッションがあって,その成果が利用できるみたい。~ [[Shuttle Radar Topography Mission(SRTM)>http://www2.jpl.nasa.gov/srtm/]]と呼ばれるスペースシャトルに積み込んだレーダを使って全世界の詳細な立体地形データを作成すること目的としたミッションがあって,その成果が利用できるみたい。~
Line 141: Line 146:
 > ogr2ogr -overwrite -progress -skipfailures -clipsrc 122.560700 21.209920 153.890100 45.802450 japan.shp land-polygons-split-4326/land_polygons.shp  > ogr2ogr -overwrite -progress -skipfailures -clipsrc 122.560700 21.209920 153.890100 45.802450 japan.shp land-polygons-split-4326/land_polygons.shp
-その後,[[shape2osm.py>;https://github.com/mapsforge/mapsforge-mapcreator/blob/master/shape2osm.py]]を使用して,日本の陸地線データを,japan_ns.osmファイルに変換する。+その後,&ref(shape2osm.py);を使用して,日本の陸地線データを,japan_ns.osmファイルに変換する。
 > python shape2osm.py -l japan_ns -o 10000000 japan.shp  > python shape2osm.py -l japan_ns -o 10000000 japan.shp
これで,japan_ns.osmが作成される。この時,key='natural' value='nosea'が追加される。~ これで,japan_ns.osmが作成される。この時,key='natural' value='nosea'が追加される。~
Line 150: Line 155:
 > osmconvert japan_ns.osm -B=..\poly\Chubu.poly -o=chubu_ns.osm  > osmconvert japan_ns.osm -B=..\poly\Chubu.poly -o=chubu_ns.osm
 > osmconvert japan_ns.osm -B=..\poly\Kinki.poly -o=kinki_ns.osm  > osmconvert japan_ns.osm -B=..\poly\Kinki.poly -o=kinki_ns.osm
- > osmconvert japan_ns.osm -B=..\poly\Chugoku.poly -o=chugoku_ns.osm+ > osmconvert --complex-ways japan_ns.osm -B=..\poly\Chugoku.poly -o=chugoku_ns.osm
 > osmconvert japan_ns.osm -B=..\poly\Shikoku.poly -o=shikoku_ns.osm  > osmconvert japan_ns.osm -B=..\poly\Shikoku.poly -o=shikoku_ns.osm
 > osmconvert japan_ns.osm -B=..\poly\Kyushu.poly -o=kyushu_ns.osm  > osmconvert japan_ns.osm -B=..\poly\Kyushu.poly -o=kyushu_ns.osm
Line 183: Line 188:
 > osmosis --read-xml file="japan_s.osm" --read-xml file="shikoku_ns.osm" --sort --merge --write-xml file="shikoku_sea.osm"  > osmosis --read-xml file="japan_s.osm" --read-xml file="shikoku_ns.osm" --sort --merge --write-xml file="shikoku_sea.osm"
 > osmosis --read-xml file="japan_s.osm" --read-xml file="kyushu_ns.osm" --sort --merge --write-xml file="kyushu_sea.osm"  > osmosis --read-xml file="japan_s.osm" --read-xml file="kyushu_ns.osm" --sort --merge --write-xml file="kyushu_sea.osm"
 +
 +やっと,陸地は<tag k="natural" v="nosea" />が,海の部分は<tag k="natural" v="sea" />がある地図データが作成できた。(海は日本全体だけど・・・)
*** 日本の地図と等高線をマージして完成 [#g8a11fa9] *** 日本の地図と等高線をマージして完成 [#g8a11fa9]

  • PC/地図/Locus map用ベクター地図 のバックアップ一覧
  • PC/地図/Locus map用ベクター地図 のバックアップ差分(No. All)
    • 1: 2015-10-05 (月) 03:52:54 yuji
    • 2: 2015-10-13 (火) 01:12:03 yuji
      • Attached file: del.txt, Attached file: japan.poly, Attached file: japan_map.png
    • 3: 2015-10-13 (火) 05:20:08 yuji
      • Attached file: tags.xml, Attached file: japan_map2.png, Deleted an attach file: del.txt at 2015-10-14 (水) 13:04:46
    • 4: 2015-10-14 (水) 05:05:04 yuji
      • Attached file: del.txt, Deleted an attach file: del.txt at 2015-10-15 (木) 08:33:16
    • 5: 2015-10-15 (木) 02:35:43 yuji
      • Attached file: del.txt, Deleted an attach file: del.txt at 2015-10-15 (木) 10:33:42 at 2015-10-15 (木) 10:35:13, Deleted an attach file: tags.xml at 2015-10-15 (木) 14:54:36
    • 6: 2015-10-15 (木) 08:48:39 yuji
      • Attached file: tags.xml, Deleted an attach file: tags.xml at 2015-10-15 (木) 16:48:20
    • 7: 2015-10-19 (月) 03:14:53 yuji
      • Attached file: Hokkaido.poly, Attached file: Honshu.poly, Attached file: Kyushu.poly, Deleted an attach file: Kyushu.poly at 2015-10-19 (月) 11:12:34, Deleted an attach file: Honshu.poly at 2015-10-19 (月) 11:12:48, Deleted an attach file: Hokkaido.poly at 2015-10-19 (月) 11:13:01, Attached file: hokkaido.poly, Attached file: honshu.poly, Attached file: kyushu.poly, Attached file: shikoku.poly, Deleted an attach file: tags.xml at 2015-11-27 (金) 16:51:58
    • 8: 2015-11-27 (金) 07:52:27 yuji
      • Attached file: tags.xml
    • 9: 2016-02-10 (水) 12:50:41 yuji
      • Attached file: Tohoku.poly, Attached file: Kanto.poly, Attached file: Chubu.poly, Attached file: Kinki.poly, Attached file: Chugoku.poly, Attached file: Hokkaido.poly, Attached file: Shikoku.poly, Attached file: Kyushu.poly, Deleted an attach file: shikoku.poly at 2016-02-10 (水) 21:51:25, Deleted an attach file: kyushu.poly at 2016-02-10 (水) 21:51:52, Deleted an attach file: hokkaido.poly at 2016-02-10 (水) 21:52:09
    • 10: 2016-05-19 (木) 04:55:48 yuji
      • Attached file: shape2osm.py
    • 11: 2016-05-23 (月) 01:16:36 yuji
      • Attached file: hokkaido_s.osm, Attached file: tohoku_s.osm, Attached file: kanto_s.osm, Attached file: chubu_s.osm, Attached file: kinki_s.osm, Attached file: chugoku_s.osm, Attached file: shikoku_s.osm, Attached file: kyushu_s.osm
    • 12: 2016-05-26 (木) 08:00:42 yuji
      • Attached file: tags_0.xml, Deleted an attach file: tags.xml at 2016-05-26 (木) 16:00:29, Attached file: tags.xml
    • 13: 2020-12-26 (土) 15:07:38 yuji
      • Attached file: honshu_s.osm, Attached file: Honshu.poly, Deleted an attach file: tags_0.xml at 2022-03-11 (金) 11:32:49, Deleted an attach file: tags.xml at 2022-03-11 (金) 11:32:53, Deleted an attach file: honshu_s.osm at 2022-03-11 (金) 11:44:19, Deleted an attach file: tohoku_s.osm at 2022-03-11 (金) 11:44:29, Deleted an attach file: kanto_s.osm at 2022-03-11 (金) 11:44:38, Deleted an attach file: chubu_s.osm at 2022-03-11 (金) 11:44:48, Deleted an attach file: kinki_s.osm at 2022-03-11 (金) 11:44:56, Deleted an attach file: kyushu_s.osm at 2022-03-11 (金) 11:45:05, Deleted an attach file: shikoku_s.osm at 2022-03-11 (金) 11:45:14, Deleted an attach file: chugoku_s.osm at 2022-03-11 (金) 11:45:25, Deleted an attach file: hokkaido_s.osm at 2022-03-11 (金) 11:45:35, Deleted an attach file: honshu_s_0.osm at 2022-03-11 (金) 11:50:23, Deleted an attach file: shape2osm.py at 2022-03-11 (金) 12:02:26 at 2022-03-18 (金) 07:51:26 at 2022-03-18 (金) 15:37:00 at 2022-03-22 (火) 13:24:43, Deleted an attach file: yuji_theme.zip at 2022-03-22 (火) 16:37:46, Deleted an attach file: yuji.zip at 2022-03-24 (木) 09:37:21 at 2022-03-24 (木) 10:34:56 at 2022-03-24 (木) 17:47:31 at 2022-03-24 (木) 18:16:43 at 2022-03-24 (木) 22:04:07 at 2022-03-25 (金) 15:51:22 at 2022-03-25 (金) 16:06:18 at 2022-03-25 (金) 16:14:48 at 2022-03-25 (金) 16:23:33 at 2022-03-25 (金) 16:40:05, Deleted an attach file: poi-mapping.xml at 2022-03-26 (土) 17:16:56
    • 現: 2022-03-28 (月) 23:52:43 yuji
      • Deleted an attach file: yuji.zip at 2022-04-05 (火) 17:57:26 at 2022-04-13 (水) 14:13:11 at 2022-04-13 (水) 14:42:40 at 2022-04-13 (水) 17:12:40 at 2022-04-14 (木) 10:42:26 at 2022-04-14 (木) 16:37:52 at 2022-04-14 (木) 17:12:03 at 2022-04-14 (木) 17:23:52 at 2022-04-15 (金) 09:09:56 at 2022-04-15 (金) 09:58:18, Deleted an attach file: tags.xml at 2022-04-15 (金) 16:13:22 at 2022-04-16 (土) 07:03:27 at 2022-04-17 (日) 09:45:09 at 2022-04-18 (月) 21:44:02 at 2022-04-19 (火) 13:00:54 at 2022-04-20 (水) 09:13:15 at 2022-04-21 (木) 10:48:22 at 2022-04-21 (木) 16:19:59 at 2022-04-21 (木) 16:47:32, Deleted an attach file: poi-mapping.xml at 2022-04-22 (金) 11:05:32 at 2022-04-29 (金) 16:23:58 at 2022-04-29 (金) 16:24:41 at 2022-04-29 (金) 16:41:09, Deleted an attach file: tagfilter.txt at 2022-04-29 (金) 17:20:13 at 2022-04-29 (金) 17:58:47 at 2022-04-29 (金) 18:15:10 at 2023-06-28 (水) 10:21:51 at 2023-06-30 (金) 12:17:43 at 2023-06-30 (金) 12:39:41 at 2023-06-30 (金) 16:09:41 at 2023-07-01 (土) 07:05:30 at 2023-07-03 (月) 15:49:19 at 2023-07-03 (月) 16:20:37 at 2023-07-04 (火) 10:29:36 at 2023-07-04 (火) 15:54:19 at 2023-07-07 (金) 07:12:56 at 2023-07-14 (金) 06:45:58 at 2023-07-14 (金) 14:24:10 at 2023-07-22 (土) 12:23:39 at 2023-07-26 (水) 13:15:09, Deleted an attach file: osmctools.zip at 2023-07-26 (水) 14:11:07 at 2023-08-09 (水) 15:30:16 at 2023-08-09 (水) 17:05:57, Deleted an attach file: init.sql at 2023-08-10 (木) 14:33:36 at 2023-08-10 (木) 14:34:21 at 2023-08-15 (火) 20:04:38 at 2023-08-15 (火) 21:02:58 at 2023-08-15 (火) 21:12:29 at 2023-08-16 (水) 08:46:41 at 2023-08-16 (水) 08:47:25 at 2023-08-16 (水) 15:44:09 at 2023-08-16 (水) 16:02:12 at 2023-08-16 (水) 16:09:19 at 2023-09-08 (金) 07:16:17 at 2023-09-08 (金) 07:17:22 at 2023-09-08 (金) 08:14:22

トップ   差分 バックアップ 複製 名前変更 リロード   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom
Counter: 4251, today: 5, yesterday: 0