tilery / mae-boundaries

Script to apply MAE (French Foreign Office) rules to OSM boundaries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MAE boundaries

Apply MAE (French Foreign Office) rules to OSM boundaries.

It will generate two geojson:

  • boundary.json, with the international boundaries
  • disputed.json, with the disputed areas

It also provides a list of country and city names.

System requirements

  • postgresql
  • postgis
  • python >= 3.6

Usage

  • Create a mae psql database with postgis enabled

      createdb mae
      psql mae -c 'CREATE EXTENSION postgis'
    
  • Create python virtualenv, activate it and install python dependencies

      python -m venv mae
      source mae/bin/activate
      pip install -r requirements.txt
    
  • run the script:

      python make.py all
    

Rules

  • areas: define areas to be included/excluded from country boundaries, based on OSM keys on based on other areas name (using includes)
  • disputed: list areas that are considered "disputed" by MAE
  • countries: for each country (based on ISO code), list areas to include/exclude

About

Script to apply MAE (French Foreign Office) rules to OSM boundaries.


Languages

Language:Python 95.4%Language:Makefile 4.6%