Hi geos team,
In running tests we see that the intersection between a LineStringZM or MultiLineStringZM with one or more LineStringZM or MultiLIneStringZM drops the M dimension. This simple example mimics the what we see:
from shapely import from_wkt, MultiLineString
line_a = from_wkt('LineString (0 0 0 NaN, 10 0 123 NaN)')
# <LINESTRING ZM (0 0 0 NaN, 10 0 123 NaN)>
line_b = MultiLineString([from_wkt('LineString (4 -5 999 NaN, 5 5 456 NaN, 6 -6 678 NaN)')])
# <MULTILINESTRING ZM ((4 -5 999 NaN, 5 5 456 NaN, 6 -6 678 NaN))>
line_a.intersection(line_b)
# <MULTIPOINT Z ((5.455 0 312), (4.5 0 391.425))>
We think this is specific to NaN values in M but cannot confirm this 100% but are almost certain this is the situation.
ref shapely/shapely#2408
Hi geos team,
In running tests we see that the intersection between a
LineStringZMorMultiLineStringZMwith one or moreLineStringZMorMultiLIneStringZMdrops the M dimension. This simple example mimics the what we see:We think this is specific to NaN values in M but cannot confirm this 100% but are almost certain this is the situation.
ref shapely/shapely#2408