Giter Club home page Giter Club logo

mapsaw's Introduction

======
Mapsaw
======

Mapsaw is Python code for rendering maps.  The architecture
is intended to render one "supertile" at a time, where a
complete supertile can be rendered in main memory.

Extracting input data for the supertile(s) to be rendered
is a preprocessing step that ideally involves a single pass
over the source data.

Mapsaw is heavily inspired by Lars Ahlzen's TopOSM Colorado.
The rewrite is mostly to use more python.  No shell scripts
or imagemagick here.  Data is kept in memory as much as
possible and compositing is done with Numpy and Scipy.ndimage.
Temporary files should fit in a ramdisk.

Install
-------

Lots of prerequisites:
 Numpy
 Scipy.ndimage
 mapnik
 PIL
 GDAL (both python bindings and utility programs)
 pyproj
 optipng
... others ...

Note that scipy.ndimage can be installed easily without the rest of scipy.

Mapsaw currently uses Cascadenik for styles - it requires a
development version of cascadenik from the xmlbad branch in the
repository.  Note: if you have an existing cascadenik installation
you may not want to do this:
   svn co http://mapnik-utils.googlecode.com/svn/branches/cascadenik-xmlbad
   cd mapnik-utils

Then you need one other patch to cascadenik to get mapsaw running -
see cascadenik-xmlbad-patch.diff in this directory and apply.

Then "python setup.py install" in the mapnik-utils directory and
hopefully you're good to go.

Configuration
-------------

The "configuration file" is mapsaw/mapconfig.py which you will need
to customize for your data sources.

To run mapsaw, do
  cd mapsaw
  python setup.py develop
  python mapsaw/topomap.py

This is pre-alpha - will require persistence to compile.

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.