Skip to content

Easy access to administrative boundary defined by GADM from Python scripts

License

Notifications You must be signed in to change notification settings

12rambau/pygadm

Repository files navigation

PyGADM

License: MIT conventional commit Black badge prettier badge pre-commit PyPI version Conda Version build Test Coverage Documentation Status

Overview

Easy access to administrative boundary defined by GADM from a Python scripts.

This lib provides access to GADM datasets from a Python script without downloading the file from their server. We provide access to The current version (4.1.) which delimits 400,276 administrative areas.

The data are freely available for academic use and other non-commercial use. Redistribution, or commercial use is not allowed without prior permission. See the license of the GADM project for more details.

Note

the dataset are generated in the GADM (Global Administrative Areas) project from Berkeley University. Any request relative to the geometries should be redirected to them.

install it using either pip or conda:

pip install pygadm

and then request area of interest from their name or GADM Id:

import pygadm

gdf = pygadm.AdmItems(name="Singapore", content_level=1)

Credits

This package was created with Copier and the @12rambau/pypackage 0.1.11 project template.