Hello everyone, I have an unexpected result when comparing two degenerate LineStrings:

Geometry geom1 = geomFactory.createLineString(new Coordinate[]{new Coordinate(1, 2), new Coordinate(1, 2)}); Geometry geom2 = geomFactory.createLineString(new Coordinate[]{new Coordinate(1, 2), new Coordinate(1, 2)});
boolean equal = geom1.equals(geom2);
boolean equalsExact = geom1.equalsExact(geom2);


In the above code, equal is false and equalsExact is true. Is this the correct behavior, and if it is, is it documented anywhere?

Regards,
Erik Loevlie
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to