You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a line string as follows, consisting of a few points (longitude/latitude) coordinates in Paris. I tried to find the closest snapped point on the given line and from a give-point
I’m using the LibGEOS library to do this as follows, but here’s the thing: visually, it looks like the point is snapping to the closest spot, but when I check with the intersect method using the same library, it turns out it’s not lining up with the provided line:
LibGEOS.intersects(nearest_point, geos_line_string) ==> False
Output of the above function gives as false, but If I input a point in the line_string separately, then it gives me true as follows:
point_in_the_line_string = LibGEOS.Point(145.0349955,-37.8096292)
LibGEOS.intersects(point_in_the_line_string, geos_line_string) ==> True
The text was updated successfully, but these errors were encountered:
I have a line string as follows, consisting of a few points (longitude/latitude) coordinates in Paris. I tried to find the closest snapped point on the given line and from a give-point
I’m using the LibGEOS library to do this as follows, but here’s the thing: visually, it looks like the point is snapping to the closest spot, but when I check with the intersect method using the same library, it turns out it’s not lining up with the provided line:
But when I check the nearest point:
The text was updated successfully, but these errors were encountered: