Upload
petr-pridal
View
446
Download
0
Embed Size (px)
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/
Citation preview
Petr Pridal <[email protected]>
June 14th, Rapperswil 2013
Tile based map publishing with WMTS TileServer, MapTiler and TileMill
Pre-rendered
Caching / Seeding
Dynamic
VS
Dynamic
WMSOpenGIS
WMTSOpenGIS
TileCacheMapCache
GeoWebCache
MapTiler / GDAL2TilesTileMill
MapServerGeoServer
Mapnik
Pre-rendered
Caching / Seeding
OSGEO TMS
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
mbutil
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
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!
MapTiler
Raster data
www.maptiler.orgwww.maptiler.com
Mac App Store
GDAL / GDAL2Tiles
TileMill
Vector dataOSM
www.tilemill.com
Mapnik
DEMO
Hosting
Standards
WMTSOpenGIS
OGC Web Map Tile Service (WMTS)
OSGEO Tile Map Service (TMS)
Microsoft QuadKey EPSG:900913
EPSG:GOOGLEGoogle XYZ
+ TileJSON? + TileServer.JSON?+ XYZ?
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/
TileServer - Desktop clients
QuantumGIS Desktop 1.9+ESRI ArcGIS Desktop 10.1+
ArcBruTiles TMS plugin for ArcGIS 9.3+GAIA - native WMTS
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
DEMO
Hurricane Sandy
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
for cl
ients
MapTiler Pro / ClusterServices
Consulting + Support
Advanced version in C/C++ with additional features
www.maptiler.com