-
Notifications
You must be signed in to change notification settings - Fork 343
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
First cut to use the GEOS library to compute buffer zones around polylines #2961
Conversation
Do you know if this is Cartesian only or does it work on spherical surfaces? |
Almost (100% - eps) sure it's Cartesian only. But. as I said, it's unbelievable how GEOS is so poorly documented. Had to build it in debug mode, and use debugger, to find out why it was failing for apparently simple calls. |
Fake name GEO(s) then. |
Probably it stands for GEOmetries as that is the basic building block. |
Also change call GEOS function to do more than just Buffer polygons.
Should we commit this? It can do more but the buffer line is already a quite useful thing. |
If you have not already, please merge master into that branch first and make sure no conflicts and run all tests, etc. Then we can continue discussing after the first intro session coming up. |
May need to spell out the endif in Cmake: CMake Warning (dev) in src/CMakeLists.txt:
|
A few more things - do I need to set anything to try this branch?
and
|
It seems like it found the library though:
|
It needs to be build with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But since it found the geos library, why did it complain about the function prototypes?
Because we need an automatic way of setting |
Looks like you dont have anything about GEOS in gmt_confit.h.in? E.g., something like this that gets configured #cmakedefine HAVE_GDAL |
Don't get what is happening. The build is failing on Windows apparently because it finds
|
Now the CI on Win passes. |
Good, so ready to merge. |
This PR is a first cut in using the GEOS library. This library is a common but not mandatory dependency of GDAL. It's also a damn poorly documented lib, which makes it very hard to learn how to use.
It needs to be build with
-DHAVE_GEOS
and add this toConfigUser.make
.I have added a tmp -Z option to gmtspatial to compute buffer zones around polylines. It works nicely but we need to create an infrastructure to accommodate all the power the use of this lib can bring to GMT.
Example usage with julia: