Skip to content

Fix -R parsing check for geographic data#6536

Merged
PaulWessel merged 2 commits intomasterfrom
fix-geo-check
Apr 8, 2022
Merged

Fix -R parsing check for geographic data#6536
PaulWessel merged 2 commits intomasterfrom
fix-geo-check

Conversation

@PaulWessel
Copy link
Member

During parsing we correctly detect if the -R string is using recognized longitude and latitude formats, but then we had a bad check were we needed a bit-wise operator but instead did an equal, i.e.

col_type == GMT_IS_GEO

instead of

col_type & GMT_IS_GEO

and we did this because we called a macro to get the type and hence did not try the bitwise and I guess.

This PR now uses intermediate variables that we can check with and now sets geographic internally.

We correctlyl detect if the -R string is using recocognized longitude and latitude formats, but then we had a bad check were we needed a bit-wise oeprator obut instead did an equal, i.e.

col_type == GMT_IS_GEO

instead of

col_type & GMT_IS_GEO

and we did this because we called a macro to get the type and hence did not try the bitwise and I guess.
This now sets geographic internally.
@PaulWessel PaulWessel added the bug Something isn't working label Apr 8, 2022
@PaulWessel PaulWessel added this to the 6.4.0 milestone Apr 8, 2022
@PaulWessel PaulWessel self-assigned this Apr 8, 2022
@PaulWessel PaulWessel merged commit 9b03c05 into master Apr 8, 2022
@PaulWessel PaulWessel deleted the fix-geo-check branch April 8, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants