Skip to main content

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

License Badge Super-Linter Unit-Tests Publish-To-PyPI

Features

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


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.dev3.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

cap2geojson-0.1.0.dev3-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft Sir Raditya Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page