I have two polygons in Python:
poly1 = shapely.geometry.polygon.Polygon([(3,4), (2,4),(2,2),(3,2)])
poly2 = shapely.geometry.polygon.Polygon([(4,4), (3,4),(3,2),(4,2)])
that look like this:
Obviously the polygons touch in points (3,4)
and (3,2)
.
How could I add this attribute (touches=True/False or 1/0) to each vertex of the Polygon?
LinearRing
about M...maybe this is worth another question. I'm not sure though if I got your "issue of scale" correctly...I only need one additional attribute besides X and Y, so there is no problem for me. Is that what you meant?