pcodegenerator


Namepcodegenerator JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryCommand line script to generate pcodes from your spatial dataset
upload_time2024-09-14 13:14:56
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseGPL-3.0-only
keywords pcode humanitarian duckdb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

![pcode](https://github.com/user-attachments/assets/fd030038-f5cb-46af-b012-697478208a03)

### Admin boundaries

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

![image](https://github.com/user-attachments/assets/3fd2f61a-5618-4b6c-a5ba-79cff4cd40ea)


### 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](https://github.com/user-attachments/assets/639882ee-9148-478c-81a2-820c75ae15ff)


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pcodegenerator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "pcode, humanitarian, duckdb",
    "author": null,
    "author_email": "Kshitij Raj Sharma <skshitizraj@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/98/df/8ec728f22147cdd331a1fe321b9993aacff10cdb901bc357c905873b8116/pcodegenerator-0.2.2.tar.gz",
    "platform": null,
    "description": "# pcodegenerator\nGenerates pcodes for geospatial datasets based on COD \n\n## Install : \n```bash\npip install pcodegenerator\n```\n\nMake sure you have ogr2ogr installed on your machine too.\n\n## Prepare :\n\nDownload / Update with the latest COD edge matched dataset , Know more https://fieldmaps.io/ \n\n```bash\npcodeprepare --admin 4\n```\n\n## Usage\n\nExample to add pcode dataset on localities \n\n```bash\npcodegenerator --source ./adm4_polygons.parquet --input locality.geojson --output locality_pcodes.geojson\n```\n\n\n\n## Resources : \nAll credits to respective providers \n\n### ISO2 naming\n\nSource : https://www.fao.org/nocs/en/  \n\nMultilingual database of Names of Countries and Territories (NOCS) \n\n### P-Codes Generation Logic\n\nhttps://humanitarian.atlassian.net/wiki/spaces/imtoolbox/pages/222265609/P-codes+and+gazetteers\n\n![pcode](https://github.com/user-attachments/assets/fd030038-f5cb-46af-b012-697478208a03)\n\n### Admin boundaries\n\nSource : https://www.geoboundaries.org/ \nLicense :  CC BY 4.0 license\n\n![image](https://github.com/user-attachments/assets/3fd2f61a-5618-4b6c-a5ba-79cff4cd40ea)\n\n\n### Global boundaries with COD attributes ( Including subnational geom )\nSource : https://fieldmaps.io/data \n\nAPI :  https://data.fieldmaps.io/edge-matched.json \n\nLicense : Open Data Commons Open Database License (ODbL) \n\n![image](https://github.com/user-attachments/assets/639882ee-9148-478c-81a2-820c75ae15ff)\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-only",
    "summary": "Command line script to generate pcodes from your spatial dataset",
    "version": "0.2.2",
    "project_urls": {
        "documentation": "https://github.com/kshitijrajsharma/pcodegenerator",
        "homepage": "https://github.com/kshitijrajsharma/pcodegenerator",
        "repository": "https://github.com/kshitijrajsharma/pcodegenerator"
    },
    "split_keywords": [
        "pcode",
        " humanitarian",
        " duckdb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe8daf810413715adf9a16e0484c2d6ed9ddf75bd235c251a4c7e48f77290252",
                "md5": "26bc1967b2cb4bf12735ae8872c0dc34",
                "sha256": "44bb921c91b471d4acb59f830f4a7271248a5f3f53bfa1cc068ceed6868618f4"
            },
            "downloads": -1,
            "filename": "pcodegenerator-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "26bc1967b2cb4bf12735ae8872c0dc34",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 17755,
            "upload_time": "2024-09-14T13:14:55",
            "upload_time_iso_8601": "2024-09-14T13:14:55.101456Z",
            "url": "https://files.pythonhosted.org/packages/fe/8d/af810413715adf9a16e0484c2d6ed9ddf75bd235c251a4c7e48f77290252/pcodegenerator-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "98df8ec728f22147cdd331a1fe321b9993aacff10cdb901bc357c905873b8116",
                "md5": "c5756de66774632bd3cd84be6e0998a7",
                "sha256": "ad659b0903b78542ff82f53e93e05566d74fd456f9e93feb0e5681e9840ed85e"
            },
            "downloads": -1,
            "filename": "pcodegenerator-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c5756de66774632bd3cd84be6e0998a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 16699,
            "upload_time": "2024-09-14T13:14:56",
            "upload_time_iso_8601": "2024-09-14T13:14:56.446871Z",
            "url": "https://files.pythonhosted.org/packages/98/df/8ec728f22147cdd331a1fe321b9993aacff10cdb901bc357c905873b8116/pcodegenerator-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-14 13:14:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kshitijrajsharma",
    "github_project": "pcodegenerator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pcodegenerator"
}
        
Elapsed time: 8.87548s