Closed
Conversation
Member
|
I have resolved the indentation-related conflicts here. |
Member
|
A test: |
Member
|
@metzm shall I bump this PR to 8.4.0? |
2771774 to
c050755
Compare
wenzeslaus
reviewed
Nov 9, 2023
Comment on lines
+171
to
+173
| if (*xmin < -180 && *xmax < -180) { | ||
| G_warning(_("The requested region seems to be outside the area of " | ||
| "use of the target CRS")); |
Member
There was a problem hiding this comment.
When I imagine getting this message I think I would lack three pieces of information:
- What region? Is that extent of my raster?
- The actual numbers and what's wrong about them. This is what I did for g.region: g.region: Add more detail into error messages #1140 and g.region: Add more detail into LL error messages #1988 in
lib/gis/adj_cellhd.c. This may also clarify the uncertainty expressed by "it seems to". - What will happen next. It's a warning, not error, so I would expect the code to go on which it does but it also does some adjustment to the values.
Contributor
Author
|
This test is not working as expected. PROJ has its own mechanism to check for the area of use with its spatial criterions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a simple check if reprojection would fall outside the intended area of use of the target CRS.
I would prefer to refuse reprojection in these extreme cases, but this might be too restrictive. If subsequent errors occur because reprojected coordinates are invalid, this can be changed accordingly to actually refuse reprojection which is the current behaviour, but without explanation why.