A bit related to #1486, but in this case it is not about "not splitting" at self-intersections (that don't intersect with the splitter), but about splitting a line at a point that also happens to be a self-intersection, and where this point is also an endpoint of the line. (cc @dbaston)
Self-intersection in the interior works fine:
$ geosop -a "LINESTRING (0 -1, 0 0, 0 1, 1 1, 1 0, 0 0, -1 0)" -b "POINT (0 0)" split
GEOMETRYCOLLECTION (LINESTRING (0 -1, 0 0), LINESTRING (0 0, 0 1, 1 1, 1 0, 0 0, -1 0))
But when the self-intersection point is an endpoint of the linestring, splitting on it does not do anything:
$ geosop -a "LINESTRING (0 0, 0 1, 1 1, 1 0, 0 0, -1 0)" -b "POINT (0 0)" split
GEOMETRYCOLLECTION (LINESTRING (0 0, 0 1, 1 1, 1 0, 0 0, -1 0))
Should that also split? (I would expect so)
From shapely/shapely#1569
A bit related to #1486, but in this case it is not about "not splitting" at self-intersections (that don't intersect with the splitter), but about splitting a line at a point that also happens to be a self-intersection, and where this point is also an endpoint of the line. (cc @dbaston)
Self-intersection in the interior works fine:
But when the self-intersection point is an endpoint of the linestring, splitting on it does not do anything:
Should that also split? (I would expect so)
From shapely/shapely#1569