Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Cartography 101
Sumin Byeon
March 21, 2013
Science
1
37
Cartography 101
Sumin Byeon
March 21, 2013
Tweet
Share
More Decks by Sumin Byeon
See All by Sumin Byeon
Big Data in Action
suminb
1
53
Git with Bitbucket
suminb
0
66
RNA Secondary Structure Prediction
suminb
0
64
Memory Management in iOS App Development
suminb
0
72
Other Decks in Science
See All in Science
DMLDiD
masa_asa
0
120
Spatial Biology US 2021
lcolladotor
0
130
LIBD_DS_TLDR
lcolladotor
0
200
計算量理論
hn410
0
330
コレスポンデンス分析の正しい使い方
bob3bob3
1
990
統計的推測の心構え:正しい質問をする
shogo_osawa
0
200
Cross-Media Information Spaces and Architectures (CISA)
signer
PRO
2
12k
FreeCADで簡易版バスケットボールのモデル
kamakiri1225
0
260
20220216_球体周りの流れ抗力係数1_FreeCADで球体モデル作成
kamakiri1225
0
190
Pythonで学ぶSynthetic Difference in Differences
masa_asa
0
450
資料科學哪有這麼可愛
line_developers_tw
PRO
0
1.2k
実験データ解析再入門:論文を「フェイクニュース」にしないために
ykamit
17
8.1k
Featured
See All Featured
Building Your Own Lightsaber
phodgson
94
4.6k
Writing Fast Ruby
sferik
612
57k
5 minutes of I Can Smell Your CMS
philhawksworth
196
18k
VelocityConf: Rendering Performance Case Studies
addyosmani
316
22k
Building Applications with DynamoDB
mza
83
4.6k
Scaling GitHub
holman
451
140k
Facilitating Awesome Meetings
lara
29
3.9k
Atom: Resistance is Futile
akmur
255
20k
A Tale of Four Properties
chriscoyier
149
20k
The Straight Up "How To Draw Better" Workshop
denniskardys
225
120k
How GitHub (no longer) Works
holman
296
140k
Automating Front-end Workflow
addyosmani
1351
200k
Transcript
Cartography 101 Sumin Byeon University of Arizona
The Ultimate Plan • Fully customizable map tiles • Serve
these map tiles on our own servers
Rationale • Google does not allow their map to be
used in any navigation software • OSM does not allow anyone to use their map servers for production purposes • CloudMade map servers are slow (perhaps it’s because we don’t pay?)
Cartography • Study and practice of making maps[1] • Projection
of a 3D world onto a 2D plane • Simplified view of the real world, selectively displaying different features depending on the purpose of the map
Slippy Maps • Interactive maps that can be zoomed and
panned around • Consists of tiles - generally 256x256 pixels • Dynamic loading • e.g., Google Maps, Bing Maps, Mapquest
Projections • Mercator projection • Normal Mercator • Transverse Mercator
• Miller cylindrical projection • Mollweide projection • Robinson projection
Mercator Projection
Prerequisites • Geospatial data • Software to process the data
• Map style definition • Tile generator • Storage (i.e., a database and a file system) • Servers to host tiles
Data Source • OpenStreetMap • XML • Nodes, links, polygons
• PBF • Binary format • ~30% smaller than compressed XML • Significantly faster to process
PostGIS • A spatial database extender for PostgreSQL • Enables
geospatial queries to be run in SQL • Supports for various features for manipulating geospatial objects
PostgreSQL • A very powerful relational database system • Known
for reliability, data integrity and correctness
Layer • Generally, a map is consist of multiple layers
• A layer is a subset of geospatial data that can be fetched by a single query
Layer SELECT name, place, population, way FROM planet_osm_point WHERE place='city'
ANDCAST(REPLACE(population, ',', '') AS INT) >= 25000 AND CAST(REPLACE(population, ',', '') AS INT) < 500000
Mapnik • A toolkit for developing map applications • Provides
sub-pixel accuracy (by using highly sophisticated anti-aliasing techniques) • https://github.com/mapnik/mapnik
Cascadenik • Mapnik style definitions in XML - low readability,
maintainability • Implements cascading stylesheets for Mapnik
Cascadenik • (Demo)
TileMill
Tile Generation • Export to an Mapnik XML • Feed
this XML to a tile generation script • Run a post processing script • Transfer tiles to servers
Questions?