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

Changes to materialised view definition to prevent errors on databases with WKT CRSs #1037

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

SpacemanPaul
Copy link
Contributor

@SpacemanPaul SpacemanPaul commented Jul 18, 2024

As discussed in #1002, creation of OWS materialised views fails on indexes that contain datasets with WKT-format CRSs, even if the datasets in question belong to products not included in the OWS config.

This PR explicitly excludes non-EPSG CRS datasets from the materialised view. This means that such datasets can NEVER be returned by OWS, but it will at least be able to possible to use OWS for other products in the same index.

Viewing non-EPSG CRS datasets will be possible in 1.9.0, with the new postgis ODC driver.

This (and other CRS-related) limitations of 1.8/postgres OWS are now documented in the README.


📚 Documentation preview 📚: https://datacube-ows--1037.org.readthedocs.build/en/1037/

@SpacemanPaul SpacemanPaul marked this pull request as ready for review July 18, 2024 04:28
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.59%. Comparing base (d71b0ef) to head (9a1c1d1).
Report is 33 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1037   +/-   ##
=======================================
  Coverage   93.59%   93.59%           
=======================================
  Files          43       43           
  Lines        6494     6494           
=======================================
  Hits         6078     6078           
  Misses        416      416           

@SpacemanPaul SpacemanPaul merged commit fb88ea2 into master Jul 22, 2024
11 checks passed
@SpacemanPaul SpacemanPaul deleted the skip_wkt_in_mvs branch July 22, 2024 03:04
SpacemanPaul added a commit that referenced this pull request Jul 31, 2024
…s with WKT CRSs (#1037)

* Changes to materialised view definition to prevent errors on databases with WKT CRSs.

* Make 'epsg:' checks case insensitive.

(cherry picked from commit fb88ea2)
SpacemanPaul added a commit that referenced this pull request Aug 1, 2024
* multi-date handler aggregator in ramp styles can now receive raw data (#1033)

* First attempt to implement raw data passing.

* Fix intermediate array dtype for numpy2

* Basic test.

* Wordlist update.

* Wordlist update.

(cherry picked from commit 41daa21)

* Prep for 1.8.41 release. (#1034)

* Prep for 1.8.41 release.

* Add this PR to HISTORY.rst

(cherry picked from commit 6c75bb2)

* Dockerfile: fix casing warning (#1035)

This fixes the warning:

- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2)

emitted by recent Docker releases.

(cherry picked from commit 955c49d)

* Version and top level folder (#1036)

* Make 'datacube-ows --version' work.

* Autowrap top level in single folder if necessary.

* Document top-level folder autowrapping behaviour.

* Update integration test translation files.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Pass auth token to codecov GHA.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

(cherry picked from commit d71b0ef)

* Changes to materialised view definition to prevent errors on databases with WKT CRSs (#1037)

* Changes to materialised view definition to prevent errors on databases with WKT CRSs.

* Make 'epsg:' checks case insensitive.

(cherry picked from commit fb88ea2)

* Port of #1039 - custom feature info enhancement.

* Resolve 1.8-1.9 cherry-picking conflicts.

* Appease the type checking gods.

* Remove unused import.

* Oops - dropped a line merging ows_configuration.py

---------

Co-authored-by: Peter A. Jonsson <[email protected]>
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