Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
OSMnx Galleryの紹介
Search
mopinfish
May 27, 2025
Technology
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OSMnx Galleryの紹介
2025/05/27 FOSS4G LT会 #2 での発表資料。
OSMnxのexampleをWeb上で実行できるアプリをStreamlitで作りました。
mopinfish
May 27, 2025
Transcript
22 slides
OSMnx Galleryの紹介 大塚 昇 1 FOSS4G LT会 2025/05/27
自己紹介 • 名前 ◦ 大塚昇 • 経歴 ◦ GIS関連企業のエンジニア ◦
GIS関連研究室 社会人博士課程在籍 • 趣味 ◦ 登山、旅行 2
本日話す内容 • OSMnxのチュートリアルをStreamlitを使って Webアプリとして公開しました https://osmnx-gallery.streamlit.app • ソースコードはGithubで公開しており、ローカ ルのDocker環境で動かすこともできます • OSMnxを使って、OpenStreetMapの地図
データを楽しく解析していきましょう!! 3
OSMnxについて 4
OSMnxとは • OpenStreetMapから道路ネット ワークや建物を取得・解析・可視化 するためのPythonライブラリ • NetworkXのグラフ形式で扱え、交 通・都市計画・空間解析に活用 5
OSMnx Examples • OSMnxの機能を紹介するJupyter ノートブック形式のチュートリアル集 • Jupyter上でインタラクティブに実行 でき、ステップバイステップで OSMnxについて学ぶことができる 6
OSMnx Gallery • OSMnx ExamplesをStreamlitで Webアプリ化しました • サイト :https://osmnx-gallery.streamli t.app
• Github:https://github.com/mo pinfish/osmnx-gallery 7
OSMnx Galleryの機能紹介 8
コンテンツ( 1) 9 ページ コンテンツ 内容 00 00-osmnx-features-demo.ipynb OSMnxの主要機能をまとめて紹介 01
01-overview-osmnx.ipynb 設計思想と基本処理の流れ 02 02-routing-speed-time.ipynb 距離と時間のルート比較 03 03-graph-place-queries.ipynb 地名や境界でグラフ取得 04 04-simplify-graph-consolidate-nodes.ipynb ノード統合による簡素化 05 05-save-load-networks.ipynb ネットワークの保存と読込 06 06-stats-indicators-centrality.ipynb 基本統計と中心性を分析 07 07-plot-graph-over-shape.ipynb ポリゴン上にネット描画 08 08-custom-filters-infrastructure.ipynb 特定インフラの抽出と表示
コンテンツ( 2) 10 ページ コンテンツ 内容 09 09-example-figure-ground.ipynb 建物と道路の空間構造表示 10
10-building-footprints.ipynb 建物面積で色分け表示 11 11-interactive-web-mapping.ipynb foliumでWeb地図を作成 12 12-node-elevations-edge-grades.ipynb 標高と勾配を可視化表示 13 13-isolines-isochrones.ipynb 等時間圏を描画・分析 14 14-osmnx-to-igraph.ipynb igraph用に変換・分析準備 15 15-advanced-plotting.ipynb 描画を色で美しくカスタム 16 16-download-osm-geospatial-features.ipynb OSM地理データを取得表示 17 17-street-network-orientations.ipynb 道路方位を統計で分析 18 18-network-constrained-clustering.ipynb ネットワーク内でクラスタ化
基本構成 11
Street Network Statistics and Centrality Indicators • 道路ネットワークに対して中心性 (centrality)指標を計算します •
これらの指標は、交通ネットワーク 上で重要なノード(交差点)を把握 するのに役立ちます 12
Routing: Speed and Travel Time • 道路ネットワーク上で各ルートにお ける 距離・速度・所要時間 を計算
しのルート探索を行います • ルート探索の目的に応じて「距離」 か「時間」を選択し、交通戦略や都 市分析に応用可能です 13
Node Elevations and Edge Grades • 標高を取得し、それに基づいて各 エッジ(道路区間)の勾配(傾斜) を計算する方法を紹介します •
地形的な困難度(坂のきつさ)を 可視化・分析でき、都市設計やモ ビリティ分析に役立ちます 14
Isochrones by Travel Time • 指定した地点から歩行可能な範 囲を時間に応じて可視化する「ア イソクロンマップ(等時間圏)」を描 画します •
緯度 / 経度、取得範囲(メート ル)、歩行速度(km/h)、複数の時 間圏(5分、10分など)を選択可能 15
Network-Constrained Clustering • 道路ネットワーク上のノード(交差 点など)を対象に空間的にグルー プ化します • 主に都市構造の区分、都市計画、 エリアマーケティングなどの用途に 役立ちます
16
空間解析と Space Syntax理論 17
SpaceSyntax理論とは • 1980年代にロンドン大学のBill Hillier教授らによって提唱された理 論 • 空間のつながりを数学的に表現し、 人の行動パターンとの関連性を分析 することで、都市計画や建築設計に 活用
• 建築内部から都市空間まで幅広い 領域で適用可能 18 [1] Precise Locations in Space: An Alternative Approach to Space Syntax Analysis using Intersection Points, Michael Dawes, Michael J. Ostwald, 2013
Introduction to Space Syntax in Urban Studies • Space Syntax理論と都市空間の解析
手法について書かれた入門書(2021 年刊行) • オープンアクセスでPDFを無料でダウ ンロード可能 • 空間と社会経済行動の関係を科学的 に探求する手法を提供することを目的 としている • https://link.springer.com/book/10 .1007/978-3-030-59140-3 19
トポロジカル(位相幾何的)に空間を解釈する 20
まとめ • OSMnxを使うと、道路ネットワークを取得・解析・可視化するこ とができる • OSMnx GalleryではOSMnxを使った可視化事例をインタラク ティブに試し、理解することができる • OSMnxはトポロジカル(位相幾何的)に都市を解析
すること で、都市の社会的成り立ちの理解 や都市計画の設計 、都市 環境評価に利用することができる 21
ありがとうございました 22
More Decks by mopinfish
See All by mopinfish
Detecting Quarry Pond Remnants on a Japanese Island Heritage Site Using Sentinel-2 Imagery and Open-Source Remote Sensing Tools
mopinfish
0
64
A Systematic Comparison of RAG Architectures for Geographic POI Question Answering
mopinfish
0
24
北木島丁場跡探索のための衛星画像による水域可視化
mopinfish
0
82
静岡県3都市の道路ネットワーク比較分析
mopinfish
0
53
HelloCyclingステーションの需要をQGISで可視化する
mopinfish
0
150
オープンデータとDjangoの連携で作る地図アプリ
mopinfish
0
56
OSMnxによる街路構造の分析と可視化
mopinfish
0
1.1k
RailsプロジェクトにVuex-ORMを導入した話
mopinfish
0
410
Other Decks in Technology
See All in Technology
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
成長するID管理基盤における運用もコストも犠牲にしないオブザーバビリティ向上の実践 / Improving Observability for a Growing Identity Platform Without Adding Operational Burden or Cost
kaminashi
1
130
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
PHPで家庭用ゲーム機の専用コントローラーをMIDIデバイスとして扱ってみる
wind111
0
200
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
クラウドでも使えるNetApp -現場目線での設計とクラウドバックアップの活用
ryutakondo
1
320
From vibe coding to reliable (agentic) development
jcabot
0
240
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
230
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
350
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
2
460
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.3k
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
600
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
430
What's in a price? How to price your products and services
michaelherold
247
13k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
820
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
250
Git: the NoSQL Database
bkeepers
PRO
433
67k
Unsuck your backbone
ammeep
672
58k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
340
WENDY [Excerpt]
tessaabrams
15
41k
Navigating Weather and Climate Data
rabernat
0
600