+ All Categories
Home > Technology > Tile based map publishing with WMTS TileServer, MapTiler and TileMill (FOSSGIS 2013)

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

Date post: 07-Dec-2014
Category:
Upload: petr-pridal
View: 442 times
Download: 0 times
Share this document with a friend
Description:
Fast online maps for web, mobile and desktop applications from a traditional Apache/PHP/MySQL web hosting or from the Amazon S3 cloud Almost all mapping applications available today on the web and in mobile devices are in fact using tiles as the core for online distribution of maps. This presentation shortly explains the tiling basics and shows the open-source software typically used for generating and distributing tiled maps in the most popular Spherical Mercator system (EPSG:3857 / EPSG:900913) visible in Google Maps, OpenStreetMap, Bing Maps and other online maps. The tools for rendering maps such as the MapTiler (powered by GDAL/GDAL2Tiles) and TileMill (powered by Mapnik) will be demonstrated. The presentation also introduces a new open-source project called TileServer which allows to distribute rendered map tiles (directory or MBTiles) from any ordinary web server (Apache/MySQL) in the standardised OpenGIS WMTS format without a need to install, configure or maintain any additional dynamic software or web server extension. Any traditional web hosting can be therefore used for online distribution of maps. It is a rapid, extremely high-performance and scalable way how to publish maps. Hosting of the rendered maps is also possible from the cloud, such as Amazon S3/CloudFront or RackSpace Files. The published custom maps can be used in HTML5/JavaScript applications (OpenLayers/Leaflet), on mobile devices (iOS: MapKit/RouteMe, Android: OSMDroid), or even opened in desktop GIS systems such as QGIS, UDig and ESRI ArcGIS Desktop. This presentation contains a practical demonstration of map tile rendering and online publishing. Links: Spherical Mercator and Tiling Systems http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ TileServer.PHP server: https://github.com/klokantech/tileserver-php/
30
Petr Pridal <[email protected]> June 14th, Rapperswil 2013 Tile based map publishing with WMTS TileServer, MapTiler and TileMill
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