Python package to convert a CAP XML file into a GeoJSON.
Project description
The CAP to GeoJSON Converter
The Python package for making CAP alerts visualizable
Features
- GeoJSON Creation: Visualize your alerts in the GeoJSON format.
Getting Started
1. Installation
pip install cap2geojson
2A. Using the API
We can convert the CAP XML to GeoJSON using the transform(cap)
method:
cap
: The CAP alert XML string contents.
from cap2geojson import transform
with open(<cap-alert-directory>, 'r') as f:
cap = f.read()
result = transform(cap)
2B. Using the CLI
We can convert a CAP alert directly to a GeoJSON file using the following command:
cap2geojson transform <cap-alert-directory>
Bugs and Issues
All bugs, enhancements and issues are managed on GitHub.
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cap2geojson-0.1.0.dev4.tar.gz
(16.0 kB
view details)
Built Distribution
File details
Details for the file cap2geojson-0.1.0.dev4.tar.gz
.
File metadata
- Download URL: cap2geojson-0.1.0.dev4.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dabca6bf1468e0915c1a3d102a3fcd1cebb7f802dbd8dc3f8ac55d81de1ca36 |
|
MD5 | a1936afff583bf48044561f7c14167b8 |
|
BLAKE2b-256 | ee8ee961ef6b1088a143c791272ce81d86d3163527827521bc27a117b7d72c8a |
File details
Details for the file cap2geojson-0.1.0.dev4-py3-none-any.whl
.
File metadata
- Download URL: cap2geojson-0.1.0.dev4-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2386c6c86971c367bd98c584095129d5d6d0f7537cb41ac335eaca418f96e900 |
|
MD5 | 49ce9a3126f2e9e03485e874a7baabcc |
|
BLAKE2b-256 | 652fcefb7d044b1416ea9b748a3031721163dd87e4d49c857f87e8ac8c2d71b0 |