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
wkt do not duplicate first point at the end for "non closed" ring #1269
Comments
If you define a ring as non closed and then you omit the repeated point it is a valid geometry. If you define a ring as closed and then you omit the repeated point the geometry is non valid. You can run Interestingly though, if you define a geometry to be open (as in your case) and you include the repeated point in the creation then the geometry is valid. @barendgehrels is this intended? |
Thanks a lot for your answer, In that case I suppose the result of valid ring (closed and non closed) shouldn't change because it model the same concept |
The correct case is the second case you mentioned. A non closed ring is not a linestring. |
Hello
The following code give "POLYGON((0 0,0 1,1 1,1 0))"
I expected "POLYGON((0 0,0 1,1 1,1 0, 0 0))"
the last point was not repeated.
A ring is supposed to be always closed.
I used a "non closed" ring in my code. But I have understood that template parameter as a convenience way to omit internally the last redundant point. But I suppose the result of the function should not change.
I suppose we should use the closing iterator in this algorithm.
Am I wrong ?
The text was updated successfully, but these errors were encountered: