Code Monkey home page Code Monkey logo

alpinia's Introduction

alpinia!

comically exaggerated relief maps made easy

dependencies

the python bindings for mapnik (as well as for gdal if you also want the script to generate hillshades on the fly)

examples

# london x 400
./alpinia.py -x gallery/londinium.xml --hillshade 400 --center 51.51 -0.06 --scale 35000 gallery/londinium.png

./alpinia.py -x gallery/londinium.xml --hillshade 400 --size 800 200 --center 51.48 -0.02 --scale 50000 gallery/londinium-small.png

./alpinia.py -x gallery/londinium.xml --hillshade 400 --size 800 200 --center 51.49 -0.06 --scale 170000 gallery/londinium-wide.png


# edinburgh x 500
./alpinia.py -x gallery/sevenhills.xml --hillshade 500 --scale 20000 --center 55.938 -3.225 gallery/sevenhills.png

./alpinia.py -x gallery/sevenhills.xml --size 800 200 --hillshade 500 --scale 40000 --center 55.943 -3.215 gallery/sevenhills-small.png

usage

./alpinia.py --help
## usage: alpinia.py [-h] [--xml XML] [--size SIZE SIZE] [--center CENTER CENTER]
##                   [--scale SCALE] [--hillshade [HILLSHADE]]
##                   [output]
## 
## alpinia! comically exaggerated relief maps made easy
## 
## positional arguments:
##   output                output filename (default: alpinia.png)
## 
## optional arguments:
##   -h, --help            show this help message and exit
##   --xml XML, -x XML     mapnik style file (default: alpinia.xml)
##   --size SIZE SIZE      output width and height in pixels. if one of them is
##                         0, the other will be chosen so that the aspect of the
##                         map matches that of the input data file (default:
##                         [1920, 1080])
##   --center CENTER CENTER
##                         desired map center (latitude and longitude in degrees)
##   --scale SCALE         desired map scale
##   --hillshade [HILLSHADE], -z [HILLSHADE]
##                         (re-)generate hillshading. input and output filename
##                         are extracted from the xml file's 'relief' and
##                         'hillshade' layers respectively. optionally, specify
##                         the z exaggeration to use for the hillshading
##                         (default: 1.0)

links

alpinia's People

Contributors

kevinstadler avatar

Watchers

 avatar  avatar

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.