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

Check if all used CRS in a schematisation match #429

Open
wants to merge 11 commits into
base: margriet_implicit_crs
Choose a base branch
from

Conversation

margrietpalm
Copy link
Contributor

@margrietpalm margrietpalm commented Jan 3, 2025

Approach

  1. Find the first geometry data or raster file and use the EPSG of that object as a reference
  2. Add attributes for that EPSG and the source column of that EPSG to the session (similar as is done with model_checker_context). I chose this approach to prevent having to lookup the EPSG for every check.
  3. Compare other geometries and rasters to that EPSG (checks automatically added via generators)

Also added checks for valid model epsg; where valid means a known EPSG code that refers to a CRS that uses meters and is projected (37394e2)

Note that I removed a bunch of checks because I think they are no longer needed because they are done for the single model crs. But a sanity check on this would be nice (2382deb)

margrietpalm and others added 8 commits January 2, 2025 09:18
* Change CRS in all tests to 28892

* Disable RasterHasMatchingEPSGCheck (should be fixed in ticket 414)

* Remove geo_query and use explicit queries instead now transformations are no longer needed
* Add EPSGGeomCheck to compare geometry epsg to given epsg
…ke it testable

* Add tests for get_epsg_data
@margrietpalm margrietpalm requested review from elisalle and removed request for elisalle January 3, 2025 09:58
@margrietpalm margrietpalm changed the title Check if all used CRS in a schematisation match WIP: Check if all used CRS in a schematisation match Jan 3, 2025
@margrietpalm margrietpalm changed the title WIP: Check if all used CRS in a schematisation match Check if all used CRS in a schematisation match Jan 3, 2025
@margrietpalm margrietpalm requested a review from elisalle January 3, 2025 10:41
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.

1 participant