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.dev2.tar.gz
(15.8 kB
view details)
Built Distribution
File details
Details for the file cap2geojson-0.1.0.dev2.tar.gz
.
File metadata
- Download URL: cap2geojson-0.1.0.dev2.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56f054efc173bc6e65acbc94ab5e705f5e77724df3b9de4aeef1bc057c28085 |
|
MD5 | 17b163da0ca539896196898f659d444d |
|
BLAKE2b-256 | 0e4e0468225fb496d5d30600c97a075e7ee11f378df5ab595158a8a3b52c437f |
File details
Details for the file cap2geojson-0.1.0.dev2-py3-none-any.whl
.
File metadata
- Download URL: cap2geojson-0.1.0.dev2-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87e954907b898c04c2c2e39e860e9b5c13aeee63c115a2e850c3d2ab12dad23b |
|
MD5 | 904896307c3d9d2d483b3305f928992a |
|
BLAKE2b-256 | 71e54f792f1db35e03d06ccd08331aa887f3f2c16e3030964895b68313183777 |