-
Notifications
You must be signed in to change notification settings - Fork 365
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
Write WKT2 string instead of older WKT1 when setting -JEPSG:XXXX #4352
Comments
I don't think your
|
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Closing this as I'm not going to do it and there are issues in GDAL indicating that WKT2 will be the default in a future (soon?) GDAL 4.0 |
Description of the desired feature
In modules like
surface
where a NetCDF grid is produced, the default is to write a OGC WKT1 string when-JEPSG:XXXX
is used (see also https://docs.generic-mapping-tools.org/6.1/gmt.html#jproj-full). However, there can be some differences between the older OGC WKT1 format and the newer WKT2 (2018) format, GMT should probably go with the newer format (set usingFORMAT=WKT
?). Below is the diff of WKT1/WKT2 for Antarctic Polar Stereographic EPSG:3031 (the latitude of origin should be -71S):Relevant code in GMT seems to be here:
gmt/src/gmt_gdalwrite.c
Lines 416 to 420 in b169019
References:
Raised originally at GenericMappingTools/pygmt#655 (comment).
Are you willing to help implement and maintain this feature? Yes/No
The text was updated successfully, but these errors were encountered: