Replies: 3 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? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
The correct case is the second case you mentioned. A non closed ring is not a linestring. |
Beta Was this translation helpful? Give feedback.
-
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 ?
Beta Was this translation helpful? Give feedback.
All reactions