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

Address issues raised in #8438 and more. #8440

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Conversation

joa-quim
Copy link
Member

@joa-quim joa-quim commented Apr 12, 2024

The grdimage -A worked but with many limitations. For example it didn't set the CRS in the output GeoTIFF file. Also, if using a EPSG or proj4 string had many hidden errors. The problem is that using -J+proj=... opens the door to awful complicated code flows. This PR fixes several of those issues, but not all. For example, this now works correctly

gmt grdimage @earth_relief_05m  -Alixo.tiff -J4326

or

gmt grdimage @earth_relief_05m  -Alixo.tiff -J+proj=longlat

or

gmt grdimage @earth_relief_05m  -Alixo.tiff -JW14

but this hangs when it fall ins a nearly infinite loop due to badly assigned scales.

gmt grdimage @earth_relief_06m_p  -Alixo.tiff -J+proj=robin

Spend 2 day debugging/relearning things but must stop here for now. Again, this PR hopefully fixes many issues, but not all.

@joa-quim joa-quim requested review from a team April 12, 2024 16:24
@joa-quim joa-quim merged commit 6bb6378 into master Apr 14, 2024
8 of 9 checks passed
@joa-quim joa-quim deleted the grdimage-proj-sintax-fixes branch April 14, 2024 00:12
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.

None yet

1 participant