Skip to content

Fix the KEYS in grdgdal - #2894

Merged
joa-quim merged 1 commit into
masterfrom
gdal-updates
Mar 14, 2020
Merged

joa-quim merged 1 commit into
masterfrom
gdal-updates

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

This module may read datasets in GMT, but only for two of the methods selectable in -A (grid and rasterize). For the other methods we have GDAL read grids directly. Hence the KEYS should just be set to input dataset and if the method is not expecting a dataset then the primary setting is changed to secondary so that external calls do not result in a forced argument.

Also use GMT_IS_DATASET and GMT_IS_GRID instead of 0 and 1 for readability.

This module only reads datasets in GMT, but only for two of the methods selectable in -A (grid and rasterize).  For the other methods we have GDAL read grids directly.  Hence the KEYS is just for dataset and if not needed then the primary setting is changed to secondary so that external calls do not result in a forced argument.
Also use GMT_IS_DATASET and GMT_IS_GRID instead of 0 and 1 for readability.
@PaulWessel
PaulWessel requested review from joa-quim and seisman March 14, 2020 02:19
@joa-quim
joa-quim merged commit 7c4925d into master Mar 14, 2020
@joa-quim
joa-quim deleted the gdal-updates branch March 14, 2020 15:47
@ES-Solar ES-Solar mentioned this pull request Mar 4, 2026
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.

2 participants