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
WebGISをはじめてみる
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yasunori Kirimoto
October 31, 2015
Technology
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WebGISをはじめてみる
OSGeo.JP × HTML5fun 発表資料
Yasunori Kirimoto
October 31, 2015
More Decks by Yasunori Kirimoto
See All by Yasunori Kirimoto
Meet MIERUNE
dayjournal
0
100
Amazon Location Service Plugin for QGIS: Basemaps, Geocoding, and Routing
dayjournal
0
120
Geospatialの世界最前線を探る [2025年版]
dayjournal
1
720
Geospatialの世界最前線を探る [2025年版]
dayjournal
3
850
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
4
1.1k
FOSS4Gで実現するQGIS版Amazon Location Service Plugin
dayjournal
0
1.7k
State of Open Source Web Mapping Libraries
dayjournal
0
780
AWS Heroes Map 秘伝のレシピ
dayjournal
2
440
State of Amazon Location Service
dayjournal
0
520
Other Decks in Technology
See All in Technology
The seven pitfalls of AI (revised version)
ufried
0
160
プラットフォームを「作る」、 チームに「入り込む」
sansantech
PRO
0
410
OpenClawでAzure DevOpsのWiki更新を自動化する - クラウドAIだけでは届かない場所へ
yutakaosada
0
140
AI感のないAWS構成図をAIエージェントに描かせたい!
sagochiko
2
480
なぜAI任せのゲームは面白くならないのか?
hirohasuyoutube
0
370
AI駆動開発で仕様はどこまで書くべきか? ― 人とAIの責務境界から考える開発プロセスの実践
takahiromatsui
1
280
Databricksメトリクスビューはじめてのもくもく会
taka_aki
0
150
Swap and Memory Reclaim - Squeezing Out More RAM
ennael
PRO
1
1.5k
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
110
Oracle Cloud Infrastructure(OCI):Onboarding Session(はじめてのOCI/Oracle Supportご利⽤ガイド)
oracle4engineer
PRO
3
21k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
16
120k
Terraformを用いたJamf Pro構成のIaC, GitOps化への挑戦
yukun
0
120
Featured
See All Featured
From π to Pie charts
rasagy
1
380
sira's awesome portfolio website redesign presentation
elsirapls
0
430
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Optimising Largest Contentful Paint
csswizardry
37
4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Ruling the World: When Life Gets Gamed
codingconduct
0
380
Exploring anti-patterns in Rails
aemeredith
4
520
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
Discover your Explorer Soul
emna__ayadi
2
1.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Transcript
WebGISをはじめてみる Yasunori Kirimoto 2015.10.31 OSGeo.JP × HTML5fun
None
今日の目次 ①WebGISとは ②構築方法 ③ まとめ
WebGISとは
そもそもGISって?
地理空間情報を扱う技術
位置情報 + 属性 国土地理院 基盤地図情報を使用
じゃあWebGISって?
WebGISをもっとも浸透させたコンテンツ Google Maps
自由度が高いWebGISを構築するには?
そこで、 FOSS4G を使おう!!
Free Open Source Software for GeoSpatial オープンソースの地理情報ソフトウェア(GIS)
SapporoLiveMap http://sapporolivemap.day-journal.com/
None
構築方法
基本構成 背景地図 マーカー GeoJSON
基本構成 背景地図 マーカー GeoJSON
index.html stylesheet.css script.js HTML CSS JS
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Leaflet Sample</title> <script
src="./Library/leaflet-0.7.5/leaflet.js”></script> <link href=“./Library/leaflet-0.7.5/leaflet.css" rel="stylesheet" /> <link href="./css/stylesheet.css" rel="stylesheet" /> </head> <body> <div id="map"></div> <script src="./js/script.js"></script> </body> </html> HTML ライブラリの参照設定
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Leaflet Sample</title> <script
src="http://cdn.leafletjs.com/leaflet- 0.7.5/leaflet.js"></script> <link rel="stylesheet“ href="http://cdn.leafletjs.com/ leaflet-0.7.5/leaflet.css" /> <link href="./css/stylesheet.css" rel="stylesheet" /> </head> <body> <div id="map"></div> <script src="./js/script.js"></script> </body> </html> HTML ライブラリの参照設定
html, body { height: 100%; padding: 0; margin: 0; }
#map { z-index: 0; height: 100%; } CSS
基本構成 背景地図 マーカー GeoJSON
OpenStreetMap
var map = L.map('map'); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution:'© <a href="http://osm.org/copyright"> OpenStreetMap</a>
contributors'}).addTo(map); map.setView([43.0559815, 141.3857792], 16); JS
地理院地図
var map = L.map('map'); L.tileLayer(‘http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{ y}.png', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/
kikakuchousei40182.html' target='_blank'>国土地理院</a>" }).addTo(map); map.setView([43.0559815, 141.3857792], 16); JS
None
基本構成 背景地図 マーカー GeoJSON
var Map_Marker = L.marker([43.0559815, 141.3857792]) .addTo(map); var comment = 'Inter
x cross Creative Center'; Map_Marker.bindPopup(comment).openPopup(); JS マーカーの表示 ポップアップの表示
None
基本構成 背景地図 マーカー GeoJSON
・データを作成 ・オープンデータを利用
geojson.io
国土数値情報
GeoJSON 表示
var pointdata = { "type": "FeatureCollection", "crs": { "type": "name",
"properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "P13_003": "北6条エルムの里公園" }, "geometry": { "type": "Point", "coordinates": [ 141.34308642, 43.0666937 ] } }, { "type": "Feature", "properties": { "P13_003": "宮部記念緑地" }, "geometry": { "type": "Point", "coordinates": [ 141.33550164, 43.0666937 ] } }, { "type": "Feature", "properties": { "P13_003": "偕楽園緑地" }, "geometry": { "type": "Point", "coordinates": [ 141.34429626, 43.06828667 ] } }, { "type": "Feature", "properties": { "P13_003": "八軒コスモス公園" }, "geometry": { "type": "Point", "coordinates": [ 141.32328053000001, 43.08470141 ] } } ] }; GeoJSON
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Leaflet Sample</title> <script
src="./Library/leaflet-0.7.5/leaflet.js”></script> <link href=“./Library/leaflet-0.7.5/leaflet.css" rel="stylesheet" /> <script src="./files/sample.geojson"></script> <link href="./css/stylesheet.css" rel="stylesheet" /> </head> <body> <div id="map"></div> <script src="./js/script.js"></script> </body> </html> HTML
var ParkIcon = L.icon({ iconUrl: './img/Park.png', iconSize: [50, 50], iconAnchor:
[25, 20], popupAnchor: [0, -30] }); var Map_GeoJSON = L.geoJson(pointdata, { pointToLayer: function (feature, layer) { return L.marker(layer, { icon: ParkIcon }); }, onEachFeature: function (feature, layer) { layer.bindPopup(feature.properties.P13_003); } }).addTo(map); JS GeoJSONの表示 アイコンと属性値の反映 マーカーアイコンを設定
国土数値情報(都市公園データ)を使用
まとめ
・背景地図 ・マーカー ・GeoJSON ・全体概要