This notebook goes through the steps of preparing and generating up-to-date shape files of the Philippine administrative regions.
Also, please check out the accompanying blog post to this notebook at my personal blog.
The original shape files used here are downloaded from the following:
- PhilGIS.org - for the regions shape files.
- GADM Database - for the provincial-level shape files.
- Phil. Statistics Authority - for the PDF file containing updated PSGG codes.
IMPORTANT: Because of the license terms accompanying the shape files downloaded from the GADM Database, I did not push those files into this repository. So, in order to have all the needed shape files to run this notebook, please do the following:
- Go to the GADM download page.
- Choose country data for the Philippines and hit download.
- Unzip the downloaded zip file.
- Copy the files
PHL_adm1.shp
,PHL_adm1.dbf
, andPHL_adm1.shx
into the directory namedOriginal
of this project.
This notebook uses Geopandas which you can easily install with pip or conda install if you're not on a Windows machine. But, if you are, please check out Jeff Boeing's installation guide to properly set up Geopandas and its dependencies such as Shapely and Fiona. Anyway, here's a partial list of the packages you need to install to get this notebook up and running (see the requirements.txt
for the full list):
- geopandas.
- shapely
- gdal
- fiona
- descartes
- pandas
- matplotlib
- fuzzywuzzy
Please see the Updated
directory of this repository to access the updated shape files, or click here to download a zip file containing the output.
The files contained in the directory named Updated
of this project are made available free of charge to anyone under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. Please see the license.txxt
file in the Updated
directory.
Please do feel free to contribute in whatever capacity.