I have two identically-sized collections of Shapely LineStrings, representing two sets of routes from a common origin to a set of common destinations. For each "pair" of routes (i.e. set_a[0], set_b[0]), I'd like to determine which segments of the LineStrings are unique to a, unique to b, and which (if any) segments they have in common. However, this isn't really what the set-theoretic operations in Shapely are intended for, as far as I can see, so I'm wondering whether there's something other than a brute-force approach involving native Python sets and the .coords property…
أكثر...
أكثر...