You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using r.in.gdal, I’ve encountered cases where GRASS GIS flags functionally equivalent CRS (Coordinate Reference Systems) as mismatched due to differences in their WKT representations. This can lead to warnings or errors, even when the projections are functionally identical. In contrast, tools like R's sf package use GDAL's OGRSpatialReference::IsSame to check for functional equivalence, focusing on essential projection parameters rather than strict WKT matching.
I might be missing some specific logic in GRASS GIS, but based on my experience, this behavior feels stricter than necessary for practical use.
Describe the solution you'd like
If feasible, it might be helpful for r.in.gdal (in proj.c?) to incorporate a functional CRS equivalence check, such as GDAL's OGRSpatialReference::IsSame, in the projection comparison logic. This could reduce false positives in CRS mismatches caused by minor WKT differences, while still ensuring accurate CRS handling.
Describe alternatives you've considered
Current workaround: Using the -o flag to override CRS checks, which works but skips potentially important projection validation. On my side, its validated earlier by sf, but it could be cleaner to handle this in GRASS. Maybe.
Additional context
If this enhancement is appropriate, it would align GRASS with the behavior of other tools like R's sf package, potentially improving usability by avoiding unnecessary CRS mismatch errors without sacrificing accuracy. However, if there are existing mechanisms in GRASS that already handle this, I’d appreciate clarification on how best to approach these scenarios. Thanks !
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When using
r.in.gdal
, I’ve encountered cases where GRASS GIS flags functionally equivalent CRS (Coordinate Reference Systems) as mismatched due to differences in their WKT representations. This can lead to warnings or errors, even when the projections are functionally identical. In contrast, tools like R'ssf
package use GDAL'sOGRSpatialReference::IsSame
to check for functional equivalence, focusing on essential projection parameters rather than strict WKT matching.I might be missing some specific logic in GRASS GIS, but based on my experience, this behavior feels stricter than necessary for practical use.
Describe the solution you'd like
If feasible, it might be helpful for
r.in.gdal
(inproj.c
?) to incorporate a functional CRS equivalence check, such as GDAL'sOGRSpatialReference::IsSame
, in the projection comparison logic. This could reduce false positives in CRS mismatches caused by minor WKT differences, while still ensuring accurate CRS handling.Describe alternatives you've considered
-o
flag to override CRS checks, which works but skips potentially important projection validation. On my side, its validated earlier by sf, but it could be cleaner to handle this in GRASS. Maybe.Additional context
If this enhancement is appropriate, it would align GRASS with the behavior of other tools like R's
sf
package, potentially improving usability by avoiding unnecessary CRS mismatch errors without sacrificing accuracy. However, if there are existing mechanisms in GRASS that already handle this, I’d appreciate clarification on how best to approach these scenarios. Thanks !The text was updated successfully, but these errors were encountered: