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
gmt spatial -Sb stray lines / cartesian only? / gap bridging / buffer scaling #5270
Comments
The stray lines come from the unites in -S. If I do -Sb0.1, there is no trash at the end. |
Please prepare a PR that states -Sb requires Cartesian data (hence no units) in the usage as well as the docs. |
More of a general question – I could make good use of |
The error in using buffers in geogs is that the distance is not really what you asked for but the difference might be acceptable if one know what is going on. Regarding Mirone, I tried long ago and there were problems with right-clicks callbacks but maybe it has improved meanwhile. I'm talking about using Mirone in Wine (which sounds very appealing). |
Best we could do is #. determine region and do an equal-area projection under the hood then your -Sb units could be honored. |
@PaulWessel, do you think the path forward here is the docs update or the equal-area projection option for using -Sb with units? |
I guess maybe we could try this. Since gmtspatial is using GMT_Read_Data then you can make a wesn[] array from D->min and D->max arrays. Then set up a fake -JQ projection. then loop over all tbls, segments, rows and convert from geo to cart. At the end, do the inverse projection. gmtselect.c has a similar section where we project all the data. Search for do_project. |
After #7623 , I get this. |
Hmm, then I'm afraid we have to revert previous commit (or find a better fix). |
FYI, I reverted #7623 |
I think there are three different issues.
May be No.1 and No.2 are related. As to No.2, I think it is with the However, I didn't find a function in GEOS to convert POLYGON to Sequence directly. |
Description of the problem
See this forum post for context.
gmt spatial -Sb
occasional stray lines appear. See upper left and lower right.-Sb10n
but this ended far outside of 10 NM. In the example0.05n
is used. Scaling seems to be way off.Full script that generated the error
Actual outcome
See above
Expected outcome
Joaquim did some Mirone Magic which comes close to the expected outcome
System information
gmt --version
): 6.2.0_43ff8ef_2021.05.25The text was updated successfully, but these errors were encountered: