Fabien
2015-01-20 09:09:15 UTC
Hi All,
LinearRing behaves differently when interecting at the "junction point",
These are the two "sides" of the junction.
Is this a bug or is it expected? What makes me think it is a bug is that
Any idea? Thanks!
Fabien
LinearRing behaves differently when interecting at the "junction point",
from shapely.geometry import *
coords = [(1,1), (0,1), (0,2), (1,2), (3,2), (3,1), (1,1)]
print(Point(1.0, 1.0).buffer(0.4).intersection(LinearRing(coords)))
MULTILINESTRING ((1 1, 0.6 1), (1.4 1, 1 1))coords = [(1,1), (0,1), (0,2), (1,2), (3,2), (3,1), (1,1)]
print(Point(1.0, 1.0).buffer(0.4).intersection(LinearRing(coords)))
These are the two "sides" of the junction.
print(Point(2.0, 2.0).buffer(0.4).intersection(LinearRing(coords)))
LINESTRING (1.6 2, 2.4 2)Is this a bug or is it expected? What makes me think it is a bug is that
print(Point(1.0, 1.0).buffer(0.4).intersection(Polygon(coords)))
POLYGON ((0.6 ...Any idea? Thanks!
Fabien