gretzky / geojson

a fuckton of geojson data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geojson

GeoJSON datasets of:

Usage

The current version of the data is 4.1. If GADM has updated and the administrative data for countries needs to be rescraped, do the following:

  • Ensure you have python and pip 3 installed
  • Install packages: pip3 install -r requirements.txt
  • Run the scraper: python3 ./scripts/countries.py

The scraper does the following:

  • Clears old GADM data from geojson/countries
  • Gets all ISO 3166-1 alpha3 country codes (250) with available datasets on GADM
  • Scrapes GADM by country code and populates a directory for each country with all administrative division data available
    • admin_0 describes the boundaries of the country itself
    • First order administrative level data (ISO 3166-2) (admin_1) is available for all but 49 countries
    • Administrative divisions up to fourth-level are available where applicable

About

a fuckton of geojson data