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
Cartography 101
Search
Sumin Byeon
March 21, 2013
Science
1
59
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
73
Git with Bitbucket
suminb
0
94
RNA Secondary Structure Prediction
suminb
0
160
Memory Management in iOS App Development
suminb
0
130
Other Decks in Science
See All in Science
Navigating Weather and Climate Data
rabernat
0
130
なぜ21は素因数分解されないのか? - Shorのアルゴリズムの現在と壁
daimurat
0
310
コンピュータビジョンによるロボットの視覚と判断:宇宙空間での適応と課題
hf149
1
550
データベース08: 実体関連モデルとは?
trycycle
PRO
0
1k
NDCG is NOT All I Need
statditto
2
2.9k
データベース09: 実体関連モデル上の一貫性制約
trycycle
PRO
0
1.1k
People who frequently use ChatGPT for writing tasks are accurate and robust detectors of AI-generated text
rudorudo11
0
200
アクシズを探せ! 各勢力の位置関係についての考察
miu_crescent
PRO
1
110
Testing the Longevity Bottleneck Hypothesis
chinson03
0
150
論文紹介 音源分離:SCNET SPARSE COMPRESSION NETWORK FOR MUSIC SOURCE SEPARATION
kenmatsu4
0
550
MCMCのR-hatは分散分析である
moricup
0
610
Accelerating operator Sinkhorn iteration with overrelaxation
tasusu
0
220
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
220
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
380
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Embracing the Ebb and Flow
colly
88
5k
Code Reviewing Like a Champion
maltzj
528
40k
Building Applications with DynamoDB
mza
96
6.9k
Facilitating Awesome Meetings
lara
57
6.8k
Producing Creativity
orderedlist
PRO
348
40k
Building AI with AI
inesmontani
PRO
1
760
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
140
Designing for humans not robots
tammielis
254
26k
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?