Skip to content

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

Notifications You must be signed in to change notification settings

tilery/mae-boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published