Code Monkey home page Code Monkey logo

osm-animate's Introduction

osm-animate

Based on osmlab/osm-animate.

Uses datamaps, pngquant, gifsicle, and netpbm. If on a Mac,

brew install pngquant gifsicle netpbm libpng

If on Linux,

sudo apt-get install gifsicle pngquant libpng-dev libexpat1-dev

And in either case:

git clone https://github.com/ericfischer/datamaps.git
cd datamaps
make

Then come back here and make "snap":

cd ..
make snap

You need an OSM extract with timestamps, like the ones that Mapzen hosts. For instance, let's try Brasilia. Copy the URL for the OSM XML download for the city you want, and download it:

curl -O https://s3.amazonaws.com/metro-extracts.mapzen.com/brasilia_brazil.osm.bz2

Then extract the vectors from the OSM data into a datamaps flat file:

bzcat brasilia_brazil.osm.bz2 | ./snap > brasilia.snap

and then encode them with datamaps:

cat brasilia.snap | ./datamaps/encode -z20 -m32 -o brasilia.dm

Then, to make the gif, do:

./perform brasilia

which reads brasilia.snap to find the bounds of the area and the range of times represented, and makes multiple renderings of brasilia.dm into a temporary directory of images, brasilia.out, and ultimately combines them into brasilia.gif.

osm-animate's People

Contributors

e-n-f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dannykath ihsinme

osm-animate's Issues

can't make snap

On a Mac. I get the following error when following the readme instructions.

» make snap
make: *** No rule to make target `snap'.  Stop.

Any chance you know what I may be doing wrong?

(I'm working with this for Tyler Radford.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.