Skip to main content

Command line script to generate pcodes from your spatial dataset

Project description

pcodegenerator

Generates pcodes for geospatial datasets based on COD

Install :

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/

pcodeprepare --admin 4

Usage

Example to add pcode dataset on localities

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

pcode

Admin boundaries

Source : https://www.geoboundaries.org/ License : CC BY 4.0 license

image

Global boundaries with COD attributes ( Including subnational geom )

Source : https://fieldmaps.io/data

API : https://data.fieldmaps.io/edge-matched.json

License : Open Data Commons Open Database License (ODbL)

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcodegenerator-0.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

pcodegenerator-0.1.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file pcodegenerator-0.1.0.tar.gz.

File metadata

  • Download URL: pcodegenerator-0.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pcodegenerator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44b1bb16521d4a21b657a2bcf6f97848706d1bd5d91f46868a7eb0bb39eb17c0
MD5 75dfe9979db7befd6658c8bb8514d239
BLAKE2b-256 4c4f95fd911b2a33508c893803bd793afa3a99e9b3d3519efb9d40db75939575

See more details on using hashes here.

File details

Details for the file pcodegenerator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pcodegenerator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a17585c6a1bb15c12f8804c0fc2fda932f8e99283999333749752e4c1eb4a11
MD5 7b2272e549e6d5af0e29f90730f433b3
BLAKE2b-256 ab194d7bc535f7d424b926180fb9b4849cc1f4b36a189127142f92cfa85a5022

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page