Transcript
Page 1: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Petr Pridal <[email protected]>

June 14th, Rapperswil 2013

Tile based map publishing with WMTS TileServer, MapTiler and TileMill

Page 2: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 3: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Pre-rendered

Caching / Seeding

Dynamic

VS

Page 4: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Dynamic

WMSOpenGIS

WMTSOpenGIS

TileCacheMapCache

GeoWebCache

MapTiler / GDAL2TilesTileMill

MapServerGeoServer

Mapnik

Pre-rendered

Caching / Seeding

OSGEO TMS

Page 5: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

AdvantagesEasy to prepare

Fast and beautifulNo extra server software needed

Any hosting or cloud storage, SLA, files or blobsReliability - cheaper to maintain

Basemaps, data without frequent updatesEasy offline mode - mobile apps

DisadvantagesPossibly large data to store

Data for distribution different from master dataLive updates, extra processing, transfer

Page 6: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 7: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

mbutil

Page 8: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 9: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

GEODETIC COORDINATESLATITUDE LONGITUDEWGS 84 (EPSG:4326)

SPHERICAL MERCATORMETERS

EPSG:3785 / EPSG:900913

PYRAMID COORDINATESXYZ PIXELS / ZOOM

WEB VIEWERS

TILE INDEXXYZ TILE / ZOOM

TILE MAP SERVICE

Page 10: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

SPHERICAL MERCATOR

• Popular on the web: Google Maps, OpenStreetMap, Microsoft Bing Maps, ...

• Lat/Long WGS84 (GPS devices) datum coordinates always displayed to users - KML

• Map rasters are projected by a global Mercator projection: “Spherical Mercator”. EPSG:900913 / EPSG:3857 (meters)

• Conformal, cylindrical. Cropped to square (maximal latitude ~ 85.05 degrees), WGS84 ellipsoid is sphere!

Page 11: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

MapTiler

Raster data

www.maptiler.orgwww.maptiler.com

Mac App Store

GDAL / GDAL2Tiles

TileMill

Vector dataOSM

www.tilemill.com

Mapnik

Page 12: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

DEMO

Page 13: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Hosting

Page 14: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Standards

WMTSOpenGIS

OGC Web Map Tile Service (WMTS)

OSGEO Tile Map Service (TMS)

Microsoft QuadKey EPSG:900913

EPSG:GOOGLEGoogle XYZ

+ TileJSON? + TileServer.JSON?+ XYZ?

Page 15: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

TileServer

PHP files + tile folder or .mbtilesAlternative implementation in Python + C/C++

Amazon S3 / Google Cloud Storage

Usage: upload PHP + .htaccessDrop the tile files in the same folder

https://github.com/klokantech/tileserver-php/

Page 16: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

TileServer - Desktop clients

QuantumGIS Desktop 1.9+ESRI ArcGIS Desktop 10.1+

ArcBruTiles TMS plugin for ArcGIS 9.3+GAIA - native WMTS

Page 17: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

TileServer: Capabilities

Protocols:

OpenGIS WMTS 1.0.0, TileJSON.js, XYZ = OSGeo TMS 1.0.0 (invertedTMS!)

Clients:iOS (RouteMe) + Android (OSMDroid)

QuantumGIS Desktop 1.9+ESRI ArcGIS Desktop 10.1+

ArcBruTiles TMS plugin for ArcGIS 9.3+GAIA - native WMTS

Page 18: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

DEMO

Page 19: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 20: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Hurricane Sandy

Page 21: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 22: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 23: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 24: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 25: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 26: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 27: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)
Page 28: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

NOAA (Nautical Oceanic and Atmospheric Administration),BRGM (Bureau des Recherches Geologiques et Minières)

US Forest ServiceEuropean Commission: Joint Research Center

National Library of ScotlandMobile operators: Three, Orange, ...

Companies from: USA, UK, France, Netherlands, Australia, New Zealand, Italy, Spain, Chile, ...

David Rumsey (DavidRumsey.com)BRGM (Bureau des Recherches Geologiques et Minières)

Moravian Library Brno, Czech Republic

Users of MapTiler GDAL2Tiles

Page 29: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

for cl

ients

MapTiler Pro / ClusterServices

Consulting + Support

Advanced version in C/C++ with additional features

www.maptiler.com

Page 30: Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

Thank you!

email contact:

[email protected]


Recommended