12rambau / pygadm

Easy access to administrative boundary defined by GADM from Python scripts
https://pygadm.readthedocs.io
MIT License
7 stars 1 forks source link

How do I download disputed territories? #61

Open srajma opened 8 months ago

srajma commented 8 months ago

I was trying to download data for disputed territories e.g.

pygadm.Items(admin="Z01", content_level=2) # Jammu & Kashmir (India)

However, this doesn't work.

Z01 is actually included within the file for India on gadm.org, but pygadm.Items(admin="IND", content_level=2) doesn't download it either -- it only includes the features whose GID_0 is IND. Any help?

12rambau commented 8 months ago

I didn't know there was a custom code for disputed territories. It makes complete sense in the end to have them in customized code so they remain "disputed".

I need to investigate because normally I do use the json file to download entire countries. And I guess as I'm discovering the country using the is3 code, Z01 doesn't appear to exist.

Let me explore the dataset a little bit more to see if all disputed countries are stored using the same type of code (i.e. Z)

12rambau commented 7 months ago

In the initial dataset, disputed territories are treated as individual countries (they have a GID that is not based on an ISO code). I think to manage them I need to review the structure of the gadm_dataset.parquet file.