Skip to main content

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

Metadata

Release files for pcodegenerator 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pcodegenerator 0.2.2
File Size Uploaded Provenance Actions
pcodegenerator-0.2.2.tar.gz 16.7 kB Without provenance Details for pcodegenerator-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pcodegenerator 0.2.2
File Interpreter ABI Platform Actions
pcodegenerator-0.2.2-py3-none-any.whl Python 3 none any Details for pcodegenerator-0.2.2-py3-none-any.whl

Total release size: 34.5 kB

Release files / pcodegenerator-0.2.2.tar.gz

Download URL pcodegenerator-0.2.2.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad659b0903b78542ff82f53e93e05566d74fd456f9e93feb0e5681e9840ed85e
BLAKE2b-256 checksum
How to use checksums
98df8ec728f22147cdd331a1fe321b9993aacff10cdb901bc357c905873b8116
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / pcodegenerator-0.2.2-py3-none-any.whl

Download URL pcodegenerator-0.2.2-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44bb921c91b471d4acb59f830f4a7271248a5f3f53bfa1cc068ceed6868618f4
BLAKE2b-256 checksum
How to use checksums
fe8daf810413715adf9a16e0484c2d6ed9ddf75bd235c251a4c7e48f77290252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Security for pcodegenerator 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page