GithubHelp home page GithubHelp logo

rapidpro / mapzen-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehealthafrica/mapzen-exporter

0.0 4.0 1.0 17 KB

MapZen borders admin levels geojson exporter to POSM extracts expected format

Python 100.00%

mapzen-exporter's Introduction

MapZen Exporter

Service used to convert and export Admin boundaries such as MapZen Borders into POSM Extracts expected format.

Setup Guide

You need to do the following:

    $ git clone https://github.com/ehealthafrica/mapzen-exporter && cd mapzen-exporter

    $ virtualenv mapzen_env

    $ source mapzen_env/bin/activate

    $ pip install -r pip-required.txt

    $ cd exporter

    $ cp settings.yaml.temp settings.yaml

Usage

  • In settings.yaml set the following:

    • data_dir : full path to the input geojson files directory

    • output_dir: full path to output directory

    • mapzen_file_url: url to online archived file that holds each country's admin boundaries files

    • geojson_dir_name: the path to directory that contains extracted admin boundaries geojson files

    • admin_levels:

      - 2 # Default is 2 for all countries

      - 4 # OSM Admin level for next sub region for a given country e.g 4 for Nigerian States

      - 6 # OSM Admin level for next lower admin level for a given country e.g 6 for Nigerian LGAs

      - 8 #OSM Admin level for next lower admin level for a given country e.g 8 for Nigerian Wards

  • To run, while in exporter directory

    $ python exproter.py

mapzen-exporter's People

Contributors

jofomah avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

denniswambua

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.