The helper method JTSUtils.equalsExact3D(Geometry g1, Geometry g2) fails when comparing MultiPoints, MultiLines or MultiPolygons that only have a single element.
StackTrace:
java.lang.IllegalStateException: Only simple geometries should be used
at org.geolatte.geom.jts.JTSUtils.equals3DPrimitiveGeometries(JTSUtils.java:100)
at org.geolatte.geom.jts.JTSUtils.equalsExact3D(JTSUtils.java:41)
The helper method JTSUtils.equalsExact3D(Geometry g1, Geometry g2) fails when comparing MultiPoints, MultiLines or MultiPolygons that only have a single element.
StackTrace: java.lang.IllegalStateException: Only simple geometries should be used at org.geolatte.geom.jts.JTSUtils.equals3DPrimitiveGeometries(JTSUtils.java:100) at org.geolatte.geom.jts.JTSUtils.equalsExact3D(JTSUtils.java:41)
Extending the comparision in JTSUtils.equalsExact3D(Geometry g1, Geometry g2) would probably be sufficient, like