Upgrade to Pro — share decks privately, control downloads, hide ads and more …

国連 x 国土地理院 x mapbox

国連 x 国土地理院 x mapbox

2020-02-05 18:30/19:00
mapbox/OSM meetup #04
@WeWork 日比谷パークフロント

国連 x 国土地理院 x mapbox

United Nations Vector Tile Toolkit and Vector Tiles in GSI Maps
国連ベクトルタイルツールキットと地理院地図のベクトルタイル活用

Hidenori FUJIMURA

February 05, 2020
Tweet

More Decks by Hidenori FUJIMURA

Other Decks in Technology

Transcript

  1. Ministry of Land, Infrastructure, Transport and Tourism Geospatial Information Authority

    of Japan United Nations Vector Tile Toolkit and Vector Tiles in GSI Maps 国連ベクトルタイルツールキットと地理院地図のベクトルタイル活⽤ Hidenori Fujimura GeoSpatial Information Authority of Japan (GSI) 2020-02-05 18:30/19:00 mapbox/OSM meetup #04 @WeWork ⽇⽐⾕パークフロント 国連 x 国⼟地理院 x mapbox
  2. 本⽇の内容 ① United Nations Vector Tile Toolkit ② Power of

    Partnership ③ Web Maps with Raspberry Pi
  3. About myself ① Academic background: Information Technology (Robot Vision) ②

    Experience in web maps and international projects in GSI. 1. 2003: web map with vector tiles (using an ActiveX component) 2. 2012: introduced Open Source (OpenLayers, then Leaflet and Cesium) 3. 2014: started GSI vector tile engineering experiment ③ 2017-2019: Worked in the United Nations Geospatial Information Section (UNGIS) as Senior Geospatial Expert. ④ 2018: Started the United Nations Vector Tile Toolkit (UNVT)
  4. UNVT - objectives A Toolkit of existing Open Source tools

    for – producing – hosting – styling – optimizing basemap vector tiles. 1st client: UN Global Service Centre (UNGSC) 2nd client: Geospatial Information Authority (GSI)
  5. UNVT - structure Producing Tippecanoe piped with Node.js scripts Hosting

    budo or custom Node.js scripts Styling HOCON (Human-Optimized Config Object Notation) assistance Optimizing vt-optimizer I respect Mapbox for sharing excellent technologies such as the Mapbox Vector Tile Specification, Mapbox GL JS, and Tippecanoe under an open license. Through the United Nations Vector Tile Toolkit, we hope to contribute to ensuring the “map diversity” on the web in a sustainable manner.
  6. UNVT Team (Late 2019) UNGIS GeoThings 国土地理院 国立天文台 農業環境変動研究センター Mapbox

    マップル・オン OSGeo 日本支部 国連地理空間情報課 国連グローバルサービスセンター 10 Cross-sector and interdisciplinary cooperation セクター横断・領域横断の協力
  7. Recent outreach activities # date UNVT presentations in: 1 2019-06-25

    Joint event by UN OICT and Permanent Mission of Japan (New York, US) 2 2019-08-26 UN Open GIS Initiative Workshop (Bucharest, Romania) 3 2019-08-26 FOSS4G 2019 Bucharest 2019 (Bucharest, Romania) 4 2019-09-14 FOSS4G Niigata 2019 (Niigata, Japan) 5 2019-10-13 FOSS4G 2019 Kobe (Kobe, Japan) 6 2019-11-03 UN-GGIM-AP WG-3 workshop (Canberra, Australia) 7 2019-11-05 UN-GGIM-AP Plenary (Canberra, Australia) 8 2019-11-15 ESCAP workshop on land information management (Tashkent, Uzbekistan) 9 2019-11-22 Mapping Technology Association Symposium (Tokyo, Japan) 10 2019-11-28 GSI Maps Partner Network Conference (Tokyo, Japan) 11 2019-11-30 Geospatial Expo 2019 (Tokyo, Japan) 12 2019-12-03 JICA training course exercise (Tsukuba, Japan) 13 2019-12-10 ISO/TC 211 19160-2 workshop (Omiya, Japan) 14 2020-01-09 Lecture for Senior Surveyors (Tokyo, Japan) 15 2020-01-14 Lecture for Aoyama Gakuin University (Sagamihara, Japan) 16 2020-02-05 Mapbox/OpenStreetMap meetup (Tokyo, Japan)
  8. UNVT Team (February 2020) UNGIS GeoThings 国土地理院 国立天文台 農業環境変動研究センター Mapbox

    マップル・オン OSGeo 日本支部 国連地理空間情報課 国連グローバルサービスセンター 20 Cross-sector and interdisciplinary cooperation セクター横断・領域横断の協力 青山学院大学 地球社会共生学部
  9. 地理院地図 Vector(仮称)試験公開 おすすめの地図 よく使われる地図を 1クリックで表⽰ コンテキストメニュー ⼗字線(画⾯中央)または クリック位置の情報を表⽰ 地図の拡⼤・縮⼩ 地図の回転と

    ⿃瞰表⽰をリセット 地図右クリック 選択した地物の属性が 表⽰され、その種類の デザインを編集可能 地図右ドラッグ 地図が回転 詳細ボタン 地物の種類ごとに表⽰/⾮表⽰切り替え、 地図表現の変更、レイヤー順序変更 2019年7⽉29⽇にウェブ地図「地理院地図Vector」を試験公開 22
  10. ①ベクトルタイルの⽣成 データ仕様 Mapbox Vector Tile Specificationと同⼀ 作成⽅法 数値地図(国⼟基本情報)【.shp】 ベクトルタイル【.pbf】 UN

    Vector Tile Toolkit 加⼯(属性の削除・編集)、変換等 ⼯夫した点 • データ容量を⼩さくするために、描画に不要な属性は削除した 3⽉までに全国のデータを公開予定 24
  11. ②スタイリング(デザイン) データ仕様 作成⽅法 ⼯夫した点 Mapbox Style Specificationをベースに、 建物のハッチングを表現をする等のために若⼲拡張 ハッチング ラスタの地理院タイルのスタイルを参考にスタイルファイルを作成。(全く同⼀ではない)

    • スタイルレイヤ数が多ければ多いほど(地図デザインが複雑であれば複雑であるほど)特 に初期表⽰が遅くなることが明らかになったことから、多少の表現の簡素化を⾏っている。 (例︓⽴体交差の簡素化、中央分離帯の⾮表⽰ 等) • 注記同⼠が重なった場合は、⾃動的に⼀⽅を⾮表⽰にするようにしているが、元データ が1⽂字ずつ位置情報を持っている場合はオーバーラップを認めることとした。 地理院地図 Vector デザインの簡素化 1⽂字ずつ位置情報を持っている注記の処理 25
  12. ①ベクトルタイルの⽣成と②スタイリングに関しての課題 2.⽔域ポリゴンが2重になっている →3⽉までには修正予定 1.⽂字化けで地物が抜けている →9⽉3⽇修正 3.鉄道の旗竿表⽰ 4.注記が離れすぎ 6.スタイルの更なる改善 →11⽉19⽇⼀部修正 鉄道⾼架が

    ⽬⽴ちすぎ︖ 旗竿のはず なのだが・・・ 駅が表⽰ されていない 透過表⽰にすると 濃くなる箇所がある 駅名が駅か ら離れすぎ 本当はココ ポリゴンがおかしい 5.ポリゴンの表⽰がおかしい →11⽉19⽇⼀部修正 改善のための技術的調査を⽇々進めています 26
  13. チャレンジ Mapbox Studio は、外部タイル未サポート 対応 地理院 pbf から GeoJSON Text

    Sequence に戻して mbtiles に再変換 https://github.com/hfu/kawagoe-stream/ タイル単位で tippecanoe-decode cat して Tippecanoe に通す
  14. プログラム ※ GGIM: 地球規模の地理空間情報管理 国連 GGIM 防災作業部会 作業班B 「シナリオベース演習」主任 国連

    GGIM アジア太平洋地域委員会 第三作業部会「統計と地理空間情報 の統合」副議⻑ 国連ベクトルタイルツールキット 主任 参加無料!先着順!
  15. Ministry of Land, Infrastructure, Transport and Tourism Geospatial Information Authority

    of Japan United Nations Vector Tile Toolkit and Vector Tiles in GSI Maps 国連ベクトルタイルツールキットと地理院地図のベクトルタイル活⽤ Hidenori Fujimura GeoSpatial Information Authority of Japan (GSI) 2020-02-05 18:30/19:00 mapbox/OSM meetup #04 @WeWork ⽇⽐⾕パークフロント 国連 x 国⼟地理院 x mapbox