Repository navigation
Replies: 1 comment 2 replies
|
No. JTS 1.20.0 sorts the points by coordinate (X, then Y), not along the segment. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I want to find the nearest intersection of a line segment and a LinearRing to one end of the line segment. The LinearRing may be concave, so there may be multiple intersections. I'm using
var intercepts = seg.intersection(ring);to find the intersections, then looping through the results calculating the distance from each to the end point to find the nearest. However, if I knew the order of the points, I could just grab the first or last one.JavaDoc says the result of an intersection is
a Geometry representing the point-set common to the two Geometrys.So, is ordering of the result of the above operation guaranteed or not?
Frank
All reactions