Name: raster-poc
Owner: Mapzen
Description: raster proof of concept
Created: 2015-08-19 21:12:55.0
Updated: 2016-08-27 17:52:11.0
Pushed: 2015-08-19 21:14:10.0
Homepage: null
Size: 120
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is meant as an ephemeral testing space for raster tiles.
This python service proxies requests over to the mapzen vector tile service to use as a data source, and then uses mapnik to render into a raster png.
You'll need to make sure that mapnik is installed globally first along with the python bindings. On ubuntu 14.04:
get install libmapnik libmapnik-dev mapnik-utils python-mapnik
On a mac, hopefully in homebrew it's just the following to install mapnik and the python bindings:
update
install mapnik
This should run without issues:
on -c 'import mapnik'
You'll also need libgeos for shapely:
Ubuntu:
get install libgeos-dev
And on a mac?
install libgeos
Now you can install the raster poc service:
clone https://github.com/mapzen/raster-poc.git
aster-poc
ualenv --system-site-packages env
ce env/bin/activate
on setup.py develop
erserve
With the service running, there is an included simple leaflet page to exercise it:
eaflet
on -m SimpleHTTPServer
Now, just navigate to http://localhost:8000/