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

Install libgdal-dev instead of libgdal1-dev #406

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Install libgdal-dev instead of libgdal1-dev #406

merged 1 commit into from
Feb 8, 2019

Conversation

seisman
Copy link
Member

@seisman seisman commented Feb 7, 2019

libgdal1-dev is a transitional dummy package that depends on libgdal-dev, at least since Ubuntu 14.04.

libgdal1-dev is a transitional dummy package that depends on
libgdal-dev, at least since Ubuntu 14.04.
Copy link
Contributor

@remkos remkos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust your expertise with this. Looks good to me.

@remkos remkos merged commit 27f3d6e into master Feb 8, 2019
@remkos remkos deleted the libgdal branch February 8, 2019 07:57
obaney pushed a commit to obaney/gmt that referenced this pull request Aug 18, 2021
…nericMappingTools#490)

External programs like PyGMT can pass dataset/momory to GMT. By default,
GMT can read, modify and free the momery, which sometimes can cause
crashes.

Issue GenericMappingTools#406 reports an example in which PyGMT crashes. The issue was reported
to the upstream (see GenericMappingTools#3515
and GenericMappingTools#3528). It turns out
to be a API user error (i.e., a PyGMT bug).

As per the explanation of Paul, external programs like PyGMT should
always use `GMT_IN|GMT_IS_REFERENCE` to tell GMT that the data is
read-only, so that GMT won't try to change and free the memory.

This PR makes the change from `GMT_IN` to `GMT_IN|GMT_IS_REFERENCE`
in the `Session.open_virtual_file()` function, updates a few docstrings,
and also adds the script in GenericMappingTools#406 as a test.
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

2 participants