Skip to content

Geometry Splitter with splitting on self-intersecting end-point of a line #1494

Description

@jorisvandenbossche

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))
Image

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))
Image

Should that also split? (I would expect so)

From shapely/shapely#1569

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions