Maps — the original data visualization solution
No matter how you describe a map, it is probably one of the top ten used apps on your mobile device. Consider how much land or square kilometers a paper map covers. Add in a mobile device and GPS receiver, and a location that has no data signal and you have solid compelling product for traversing the back country with a mobile map. The talk will focus around making a back country hiking map for iOS and Android based on US Forest Service maps that are freely available.
This talk is about the power of maps for mobile. Rob will discuss the data wrangling and image processing of making a map for mobile using open source technologies such as Mapbox, GDAL, GeoJSON, and WEBP.
- Maps for Android
- Mt Whitney Map, take 1
- Mapbox Mobile
- Mount Whitney Map, take 2 http://RobLabs.com/MtW
- Cleveland National Forest http://RobLabs.com/Cleveland
- Coconino National Forest http://RobLabs.com/flag
- Joshua Tree National Park http://RobLabs.com/jotr
Architecture for Mobile Maps
Background and Definitions
- GeoTIFF — a TIFF based interchange format for georeferenced raster imagery.
- Tiles — "web maps are made up of many small, square images called tiles. These tiles ... are placed side-by-side in order to create the illusion of a very large seamless image." Source: Mapbox.com
- MBTiles — "The MBTiles specification is an efficient format for storing millions of tiles in a single SQLite database." Source: Mapbox.com
- FSTopo — US Forest Service (USFS) Map images
- US Topo — US Topo from US Geological Survey (USGS)
- NPS Topo — National Park Service (NPS) has maps as well.
- Processing of GeoTIFFS makes use of the GDAL tools from the Open Source Geospatial Foundation (OSGEO)
- gdal2tiles.py has open source enhancements for parallel processing and WEBP compression. https://github.com/roblabs/gdal2tilesp
- Can run as a full Docker Container
Command Line Cartography
# fetch wget http://data.fs.usda.gov/geodata/rastergateway/data/36118/fstopo/363011815_Mount_Whitney_FSTopo.tif # Set projection for web mercator gdalwarp -t_srs EPSG:3857 363011815_Mount_Whitney_FSTopo.tif MtW.3857.tif # expand to a VRT format gdal_translate -of vrt -expand rgba MtW.3857.tif MtW.3857.vrt # cut into tiles gdal2tilesp.py -z 7-15 -p mercator -f WEBP MtW.3857.vrt MtW # store in MBTiles mb-util MtW MtW.mbtiles
Big data (in megabytes)
File | MB --- | ---: One PDF | 2 One GeoTIFF (LZW)| 12 One Uncompressed GeoTIFF | 109 Mosaic GeoTIFF (VRT) | 3,600 MBTiles (PNG) | 318 MBTiles (WEBP) | 103
Rob Chohan loves maps. Rob is taking his background in statistics, image processing, mobile imaging, and printing to create innovations in maps for mobile. Rob currently works for ePi Rational, Inc., a San Diego based startup creating innovations in cartography, data visualization, mobile, and geoinformatics. ePi focuses on 'data wrangling' to tell a story about a location. Rob has a Bachelor of Science in Mathematics and a Master of Science in Statistics, both from Oregon State University. He has two patents related to calibration of imaging devices.
Presented for the San Diego Android Meetup
- Tuesday, January 17, 2017, 5:30 PM