-
-
Notifications
You must be signed in to change notification settings - Fork 370
grass_proj: use OSRIsSame to compare CRSs #6579
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
base: main
Are you sure you want to change the base?
Conversation
|
Interesting: a test for Apparently the CRS of the NC sample projects has been changed some time ago by adding a PROJ_EPSG file to PERMANENT. Unfortunately, this PROJ_EPSG file is mssing in So either add this PROJ_EPSG file to See also list of different versions of the NAD83 datum: https://geodesy.noaa.gov/datums/horizontal/index.shtml |
Adding the file would be easiest, no? This dataset is used for testing only I believe. |
Probably yes. How can I update this |
It is downloaded from here: https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz So @neteler would have access and probably someone else. |
|
If the test dataset changes, make sure to clear the cache in GitHub actions, as I don’t think there was a check to go get the checksum of the dataset on the download server to make the cache key. Changing a dataset like that, while it could be considered an immutable file, is hard to understand. How would we compare later on if something else had changed when recreating the archive? The old one wouldn’t be available |
I know and have done so for testing, but someone would need to upload a new version. Even better, create a new one like nc_spm_full_v2beta1.tar.gz and use this one in the github pipelines. The change by adding the |
|
Is or For a new version of the sample dataset, the files |
|
yes, it is NAD83(HARN) EPSG 3358 (see grassbook p. 38 and presentation <https://www.grassbook.org/wp-content/uploads/presentations/MitOSGeoDataFOSS4G9.pdf>),
This is the reference info. <https://spatialreference.org/ref/epsg/3358/>
For some reason the EPSG is not included on the dataset website <https://grassbook.org/datasets/datasets-3rd-edition/>
neither it is in HISTORY (although it mentions switching the order of l1 and l2 to fit the EPSG definition)
<https://www.grassbook.org/wp-content/uploads/grasslocations/HISTORY.txt>
I hope this clarifies it, Helena
Helena Mitasova
Professor, Department of Marine, Earth and Atmospheric Sciences
Distinguished Faculty Fellow, Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
***@***.***
<http://geospatial.ncsu.edu/osgeorel/publications.html>
|
97faa1b to
a97b904
Compare
|
@nilason @neteler any suggestions for a title for this PR? Right now it starts with |
|
The possibilities (currently) are defined here: https://github.com/OSGeo/grass/blob/main/utils/release.yml Maybe something like |
|
Maybe not a question we necessarily need to decide here and now, but maybe it is time (version 8.5) to require GDAL 3+ (two years since #2995) and PROJ 8+. If this PR is to be backported, then that definitely needs to be decided after merge. |
If this PR is to be backported, PR #6593 needs to be backported first because this PR depends on it. The last really substantial changes to PROJ regarding CRS handling have been introduced with GDAL 3.1 and PROJ 6.2 (according to the GDAL API documentation), after that mostly new functionality and bug fixes have been added. Bumping the GRASS requirements to at least GDAL 3.1 and PROJ 6.2 would be a big relief for all maintainers of the GRASS interface to GDAL and PROJ. |
Yesterday, at the GRASS-PSC meeting we even discussed if GDAL < 2 and PROJ < 8 support might be removed from |
nilason
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
Use newer
OSRIsSame()from the OGR SRS API replacing the oldG_compare_projections()in GRASS from PROJ4 times.Fixes #5867
@marisn If this PR is ok with you, I would adjust
v.external,r.in.gdal,r.externalaccordingly.