nacis cartography for a changing map

37
Cartography for a Changing Map AJ Ashton, MapBox

Upload: andrew-ashton

Post on 29-Nov-2014

248 views

Category:

Business


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Nacis cartography for a changing map

Cartographyfor a

Changing MapAJ Ashton, MapBox

Page 2: Nacis cartography for a changing map
Page 3: Nacis cartography for a changing map

Global

● All the data OpenStreetMap has to offer, and more

● Multiscale: 20+ Web Mercator zoom levels

● Multiple label language options

Page 4: Nacis cartography for a changing map
Page 5: Nacis cartography for a changing map

Scalable

● Cloud servers that get added and dropped constantly can’t be too “heavy”

● Tiles should load just as fast with 10 users as with 10,000 users

● Apply different styles to the same underlying data

Page 6: Nacis cartography for a changing map
Page 7: Nacis cartography for a changing map

Up to date

● Currently sync with OSM every 5 minutes

● We want this to be even faster

● The world is always changing

Page 8: Nacis cartography for a changing map
Page 9: Nacis cartography for a changing map

Global + Scaleable+ Up to date

A challenging combination

Page 10: Nacis cartography for a changing map

Global + Scaleable+ Up to date

+ Make it look good

Page 11: Nacis cartography for a changing map

Keeping up with OSM

Page 12: Nacis cartography for a changing map

OSM Changes

1.5 millionchanges per day

over 1000changes per minute

http://osmstats.altogetherlost.com

Page 13: Nacis cartography for a changing map

Most changes are small,but some have big

consequences

Page 14: Nacis cartography for a changing map
Page 15: Nacis cartography for a changing map
Page 16: Nacis cartography for a changing map

Cartography for a changing map:

Simple things

Page 17: Nacis cartography for a changing map

Generalize

Page 18: Nacis cartography for a changing map

NormalizationCleaning OSM data for consistency

Page 19: Nacis cartography for a changing map

Cartography for a changing map:

Not-so simple things

Page 20: Nacis cartography for a changing map

aka. Automaticmanual tweaks

Page 21: Nacis cartography for a changing map

City labels

Page 22: Nacis cartography for a changing map

City labels

● Custom list of scaleranks (based on Natural Earth) and label direction hints

● Fuzzy spatial & fuzzy text join function between incoming OSM data + our list

Page 23: Nacis cartography for a changing map

Airport labels/icons

Page 24: Nacis cartography for a changing map

Cartography for a changing map:

Working with tiles

Page 25: Nacis cartography for a changing map

Tiles are small & static256x256 pixels not a lot to work with

Page 26: Nacis cartography for a changing map
Page 27: Nacis cartography for a changing map

Tiles don’t knowabout other tiles

Page 28: Nacis cartography for a changing map
Page 29: Nacis cartography for a changing map
Page 30: Nacis cartography for a changing map

The terrifyingchaos label problem

Page 31: Nacis cartography for a changing map
Page 32: Nacis cartography for a changing map
Page 33: Nacis cartography for a changing map
Page 34: Nacis cartography for a changing map

No perfect solutionsOnly mitigation strategies

Page 35: Nacis cartography for a changing map

Consistent orderingORDER BY scalerank, population DESC,

osm_id

Page 36: Nacis cartography for a changing map

De-duplicate atthe data level

GROUP BY ST_SnapToGrid(geom)

Page 37: Nacis cartography for a changing map