Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CPW loader to include 7day/hourly forecasts, warnings, sunrise… #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dukestep
Copy link
Contributor

This PR updates the CPW realtime loader to also include the 7-day forecasts, hourly forecasts, warnings and sunrise/sunset times. It also implements a new document mapping meant to more closely resemble how the XML data is structured. See an example GeoJSON feature on geojson.io.

A custom provider (msc_pygeoapi/provider/cpw_elasticsearch.py) was created to allow for better support of ElasticSearch nested fields (used here to contain an array of forecast objects) and GeoJSON properties fields that contain an object. Additionally, support for querying nested fields was added when a query contains a filter for a nested field.

@Dukestep Dukestep marked this pull request as draft September 26, 2024 13:48
@Dukestep Dukestep marked this pull request as ready for review September 26, 2024 13:56
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch 2 times, most recently from 42ca71f to 704b550 Compare September 26, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants