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

@Dukestep Dukestep commented Sep 26, 2024

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 with an object as a value. Additionally, support for querying nested fields was added when a OGC API Features query contains a value filter on a property back by an Elasticsearch nested field type.

@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 3 times, most recently from 704b550 to 0a3bb92 Compare September 26, 2024 15:14
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 0a3bb92 to 0784315 Compare November 28, 2024 18:01
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 0784315 to 6ca4343 Compare December 5, 2024 20:37
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch 2 times, most recently from 07e7ebb to 6e5c458 Compare December 31, 2024 11:42
@Dukestep
Copy link
Contributor Author

Dukestep commented Dec 31, 2024

Rebased on master and added in recent upstream changes made to the pygeoapi's Elasticsearch provider (see geopython/pygeoapi#1882 and geopython/pygeoapi#1887) to the CPWElasticsearchProvider provider.

@tomkralidis ready for review!

@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 6e5c458 to 269c586 Compare January 14, 2025 15:13
@Dukestep Dukestep force-pushed the add-7dayforecast-cpw branch from 269c586 to 78d01f5 Compare January 16, 2025 15:06
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