computeSimple method
Implementation
bool computeSimple(Geometry geom) {
nonSimpleLocation = null;
if (geom.isEmpty()) return true;
if (geom is LineString) return isSimpleLinearGeometry(geom);
if (geom is MultiLineString) return isSimpleLinearGeometry(geom);
if (geom is MultiPoint) return isSimpleMultiPoint(geom);
if (geom is Polygonal) return isSimplePolygonal(geom);
if (geom is GeometryCollection) return isSimpleGeometryCollection(geom);
// all other geometry types are simple by definition
return true;
}