Skip to content

Simple geometry reported as non-simple #247

@jagill

Description

@jagill

We have many multilinestrings like the one below, which are "tadpole" shapes with a loop and a tail. As a linestring they are invalid, but can be made valid by breaking them up into three line strings: two for the loop, and one for the tail, all intersecting only at boundary points.

Inspecting the multilinestring shows that it is simple. However, Esri reports it as non-simple: it fails at the checkCracking_() at OperatorSimplifyLocalHelper.isSimplePlanarImpl_ line 127.

String wkt = "MULTILINESTRING ((-103.4894322 25.6164519, -103.4889647 25.6159054, -103.489434 25.615654), (-103.489434 25.615654, -103.4894322 25.6164519), (-103.4897361 25.6168342, -103.4894322 25.6164519))";
OGCGeometry ogcGeom = OGCGeometry.fromText(wkt);
assert(ogcGeom.isSimple()); // This fails!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions