Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
クラウド最適化ファイルを用いた筆ポリゴン公開サイトの構築
Search
wata909
December 10, 2022
Science
500
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
クラウド最適化ファイルを用いた筆ポリゴン公開サイトの構築
農村計画学会2022年度秋期大会発表資料
wata909
December 10, 2022
More Decks by wata909
See All by wata909
How Many Night until FOSS4G Hiroshima 2026!!
wata909
0
100
FOSS4Gもくもく会 #008 成果報告 by wata909
wata909
0
110
ようこそ、オープンなGeoの世界へ! 〜FOSS4GとOSGeoのご紹介〜
wata909
0
220
FOSS4Gの現在地とこれから
wata909
0
110
FOSS4G のこれまでと、これから
wata909
0
160
Pythonでジオを使い倒そう! 〜それとFOSS4G Hiroshima 2026のご紹介を少し〜
wata909
0
1.6k
2026年にGlobal FOSS4Gが広島にきます! 〜OSGeo.JPとFOSS4Gのご紹介〜
wata909
0
520
地図も、未来も、オープンに。 〜OSGeo.JPとFOSS4Gのご紹介〜
wata909
0
340
オープンソースソフトウェアで地図を作ってみたいけど、どうしたらいいの!? 〜OSSの地理情報ソフトFOSS4Gのご紹介〜
wata909
0
430
Other Decks in Science
See All in Science
水耕栽培を始める前に知っておきたい植物の科学
grow_design_lab
0
340
Wet Active Matter
rajeshrinet
0
150
「念のためのログ保存」を組織全体でやめるためのポリシーと仕組み作り
i2tsuki
4
370
AI for Phage-Host prediction
michielstock
0
120
Kritische evaluatie van GenAI-output voor literatuuronderzoek
voginip
0
230
AIPシンポジウム 2025年度 成果報告会 「因果推論チーム」
sshimizu2006
3
630
機械学習 - SVM
trycycle
PRO
2
1.2k
Inside the Mind of an LLM
baggiponte
0
320
不動産業界における業界特化のデータ整備とAI活用 ─Vertical DataとVertical AI─
estie
1
960
データベース09: 実体関連モデル上の一貫性制約
trycycle
PRO
0
1.8k
[NLP2026 参加報告会] AI for Science まとめ / NLP2026
lychee1223
0
2k
Understanding CVP Waveforms: Interpretation and Clinical Implications in Anesthesiology
taka88
0
860
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Building Applications with DynamoDB
mza
96
7.2k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
250
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
The agentic SEO stack - context over prompts
schlessera
0
900
Embracing the Ebb and Flow
colly
88
5.2k
The Curious Case for Waylosing
cassininazir
1
500
A Modern Web Designer's Workflow
chriscoyier
698
190k
30 Presentation Tips
portentint
PRO
1
390
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Transcript
Licensed under a Creative Commons 表⽰4.0国際ライセンス NARO ※ 農研機構(のうけんきこう)、は、国⽴研究開発法⼈ 農業・⾷品産業技術総合研究機構のコミュニケーションネーム(通称)、です。
Licensed under a Creative Commons 表⽰4.0国際ライセンス 2022年度農村計画学会秋期⼤会 2022年12⽉11⽇ クラウド最適化ファイルを⽤いた 筆ポリゴン公開サイトの構築 農研機構農業環境研究部⾨ 岩崎亘典
Licensed under a Creative Commons 表⽰4.0国際ライセンス 1 • Agenda •
背景と⽬的 • クラウド最適化ファイルの利点 • サイト構築⽅法 • 公開⽤筆ポリゴンデータの作成 • 筆ポリゴン公開サイトの構築 • 考察およびまとめ • 短く結論!! • これからはFlatGeobufです! • ShapeFileはやめましょう。 • 右のサイトを覚えてください! • https://bit.ly/fudepoly47_2022 • 使ってくださるとうれしい! クラウド最適化ファイルを⽤いた筆ポリゴン公開サイトの構築 筆ポリゴン公開サイト
Licensed under a Creative Commons 表⽰4.0国際ライセンス 2 • 農村計画における地図 •
合意形成,計画の検討、現状把握に有効 • 公開の⼿段 • 紙媒体またはWeb • Webの場合 • Google Map等のサービス,独⾃Webサーバの構築 → ⼀⻑⼀短がある • 「サーバレス」技術 • クラウドサービス使⽤し,サーバの維持管理 コストを下げる • クラウド最適化(Cloud Optimized)として, GIS関連でも開発が進んでいる 背景と⽬的 https://www.midorinet-kagoshima.jp/maps/users/report_conf?id=311&c=6 https://www.naigai-map.co.jp/achievements/?id=1606808067-567895
Licensed under a Creative Commons 表⽰4.0国際ライセンス 3 • Cloud Optimizedファイルの例
• Cloud Optimized GeoTiff (COG) • 例:関東地⽅迅速測図原図(17.7 GB) • https://boiledorange73.sakura.ne.jp/data/cog- kanto_rapid-3857.tif • https://zenn.dev/boiledorange73/articles/0057- using-cog • Cloud Optimized Point Cloud • 例:ドローン取得点群データ(450MB) • https://viewer.copc.io/?copc=https://habs.rad.naro .go.jp/spatial_data/COPC/midou.copc.laz • データの公開等に最適 • ⽬的 • 筆ポリゴン公開サイトをCloud Optimized ファイルで作成する 背景と⽬的
Licensed under a Creative Commons 表⽰4.0国際ライセンス 4 • 元データ •
農林⽔産省の公開サイトから取得 • https://open.fude.maff.go.jp/ • 市町村毎のGeoJSON形式ファイル • 都道県毎のFlatGeobufファイルを作成 • Cloud Optimized ファイルの⼀つ • オープンソースで開発 http://flatgeobuf.org/ • 結合はWindows 64bit,OSGeo4Wを使⽤ • BATを⽤い⾃動化 • https://github.com/wata909/fudepoly47/tree/main/scripts • 変換結果 • 元ファイル:最⼤1120GB,最⼩91MB,全体 26.0GB • 後ファイル:最⼤730MB,最⼩58MB,全体 16.6GB 筆ポリゴン公開サイトの構築
Licensed under a Creative Commons 表⽰4.0国際ライセンス 5 • FlatGeobufについては,以下の資料が参考になります。 •
シェープファイルの真の後継規格 FlatGeobufの普及啓蒙活動 筆ポリゴン公開サイトの構築 資料へのリンク
Licensed under a Creative Commons 表⽰4.0国際ライセンス 6 • 右図のサイトを作成 •
FlatGeobufのサンプルページを改良 • ナビゲーション⽤のカラム地図を配置 • https://github.com/tabularmaps • 表⽰データをダウンロード可能 • リンク切れ等があったらお知らせください • 筆ポリゴンは⻘枠の部分のみ表⽰ • データの⼀部のみをDLしている • クリックによる属性表⽰ • ID,地⽬,市町村コード • 地⽬100:⽥,地⽬200:畑 筆ポリゴン公開サイトの構築 筆ポリゴン公開サイト
Licensed under a Creative Commons 表⽰4.0国際ライセンス 7 • FlatGeobufファイル転送の検証 •
つくば市を例に確認 • 単純なリクエスト:32.42MB転送 • https://wata909.github.io/fudepoly47/fude_2022_tsukuba_simple.html • Rangeリクエスト:複数に分割して転送 • https://wata909.github.io/fudepoly47/fude_2022_tsukuba_range.html 筆ポリゴン公開サイトの構築
Licensed under a Creative Commons 表⽰4.0国際ライセンス 8 • WebデータをQGISで表⽰可 •
右の図はCOGの迅速測図, FlatGeobufの筆ポリゴン,地 理院タイルの重ね合わせ • QGISの分析機能も使⽤可 • 属性表⽰,空間演算は確認 • データ活⽤の推進が期待 筆ポリゴン公開サイトの構築
Licensed under a Creative Commons 表⽰4.0国際ライセンス 9 • ソースコードはGithubにて公開 •
https://github.com/wata909/fudepoly47 • データは別サイトです • ライセンス • データは筆ポリゴンと同様 • 筆ポリゴンの利⽤規約.pdf (maff.go.jp) • 政府標準利⽤規約2.0準拠,CC BY 4.0 国 際と互換 • ソースはBSD-3-Clause license • DEMO • https://habs.rad.naro.go.jp/ spatial_data/fudepoly47/ • 時間があれQGISも 筆ポリゴン公開サイトの構築
Licensed under a Creative Commons 表⽰4.0国際ライセンス 10 • 既存データ形式との⽐較 •
地図タイル形式:⼤規模データに有効 • 部分更新が容易。ただし⼿順の標準化が必要 • 公開⽤にはオリジナルデータは別に準備 • GeoJSON形式:⼩さなファイルに最適 • Web表⽰と公開⽤データが同⼀。テキスト形式なので 可読性が⾼い • サイズが⼤きい • FlatGeobuf:⼤きなデータも可能 • Web表⽰と公開⽤データが同⼀。サイズも⼩さい • 部分的更新が難しい • ⽤途に応じて使い分けが必要 • なお,ShapeFileは問題が多く⾮推奨 • ⾊々な場⾯での活⽤を期待した 考察およびまとめ http://switchfromshapefile.org/
Licensed under a Creative Commons 表⽰4.0国際ライセンス 11 • 謝辞 •
本研究はJSPS科研費 20H03121の助 成を受けたものです。 • 本研究を実施するにあたり朝⽇航洋 株式会社・(⼀社)OSGeo⽇本⽀部 の嘉⼭洋⼀⽒より貴重なご助⾔を頂 いた。 • ⾼機能のソフトウェアをオープン ソースとして公開してるFlatGeobuf 開発チーム,OSGeo4W開発チーム, Leaflet開発チームに感謝します。 • Leaflet開発者のVolodymyr Agafonkin ⽒の故国ウクライナに、⼀⽇も早く 平穏が訪れることを祈ります。 クラウド最適化ファイルを⽤いた筆ポリゴン公開サイトの構築