- GeoJSON Creation: Visualize your alerts in the GeoJSON format.
pip install cap2geojsonWe 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)We can convert a CAP alert directly to a GeoJSON file using the following command:
cap2geojson transform <cap-alert-directory>All bugs, enhancements and issues are managed on GitHub.