Closed jGaboardi closed 5 days ago
heeey, that is unfair, there's a docstring :D
OK --> "Jame needs to feel relevant and useful by ensuring unnecessary completeness on Martin's great docstring"
I'll take that :D
@martinfleis Is this expected behavior?
In [1]: import shapely, core
...: polygon = shapely.Polygon(
...: (((0,0), (10,0), (10,10), (0,10), (0,0)))
...: )
...: line = shapely.LineString(((5,5), (100,5)))
...: core.geometry.is_within(line, polygon)
Out[1]: True
Basically, a small box where a line starts within the box, but the overwhelming majority of the line is outside the box. I interpret the tol
parameter to relax the tolerance just a bit to handle cases where a line is mostly within a polygon.
Nope, that is not expected.
found the bug
tol
should be -1e6
core/geometry.py