Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kshitijrajsharma/pcodegenerator
Generates pcodes for geospatial datasets based on COD
https://github.com/kshitijrajsharma/pcodegenerator
Last synced: 3 days ago
JSON representation
Generates pcodes for geospatial datasets based on COD
- Host: GitHub
- URL: https://github.com/kshitijrajsharma/pcodegenerator
- Owner: kshitijrajsharma
- License: gpl-3.0
- Created: 2024-09-01T11:50:42.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-09-14T13:14:02.000Z (5 months ago)
- Last Synced: 2025-02-03T02:06:55.264Z (17 days ago)
- Language: Python
- Homepage: https://pypi.org/project/pcodegenerator/
- Size: 637 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pcodegenerator
Generates pcodes for geospatial datasets based on COD## Install :
```bash
pip install pcodegenerator
```Make sure you have ogr2ogr installed on your machine too.
## Prepare :
Download / Update with the latest COD edge matched dataset , Know more https://fieldmaps.io/
```bash
pcodeprepare --admin 4
```## Usage
Example to add pcode dataset on localities
```bash
pcodegenerator --source ./adm4_polygons.parquet --input locality.geojson --output locality_pcodes.geojson
```## Resources :
All credits to respective providers### ISO2 naming
Source : https://www.fao.org/nocs/en/
Multilingual database of Names of Countries and Territories (NOCS)
### P-Codes Generation Logic
https://humanitarian.atlassian.net/wiki/spaces/imtoolbox/pages/222265609/P-codes+and+gazetteers

### Admin boundaries
Source : https://www.geoboundaries.org/
License : CC BY 4.0 license
### Global boundaries with COD attributes ( Including subnational geom )
Source : https://fieldmaps.io/dataAPI : https://data.fieldmaps.io/edge-matched.json
License : Open Data Commons Open Database License (ODbL)
