mapzen/raster-poc

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Raster Proof of Concept

This is meant as an ephemeral testing space for raster tiles.

Details

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.

Installation

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/


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.