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

Does proj_info return updated search paths if they've been set using proj_context_set_search_paths? #2266

Closed
urschrei opened this issue Jun 19, 2020 · 3 comments
Labels

Comments

@urschrei
Copy link
Contributor

Using 7.0.1, with api.h, I can pass an updated list of search paths using proj_context_set_search_paths, but a subsequent call to proj_info doesn't reflect the update. Since proj_info doesn't take a PJ_CONTEXT*, I'm just double-checking whether I've done something wrong when setting the new paths, or whether proj_info isn't supposed to show the update.

@urschrei urschrei added the bug label Jun 19, 2020
@rouault
Copy link
Member

rouault commented Jun 19, 2020

Since proj_info doesn't take a PJ_CONTEXT*

Yes, that's exactly the reason. proj_info() can only return the search paths modified on the default context, but not a custom context.

@urschrei
Copy link
Contributor Author

Ah, thanks for clarifying. If I set the new search path on the default context, do custom contexts (existing or subsequently-created) use the updated paths?

@rouault
Copy link
Member

rouault commented Jun 19, 2020

If I set the new search path on the default context, do custom contexts (existing or subsequently-created) use the updated paths?

I think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants