/** Returns whether {@code geom1} equals {@code geom2}. */ public static boolean ST_Equals(Geom geom1, Geom geom2) { return GeometryEngine.equals(geom1.g(), geom2.g(), geom1.sr()); }
/** Returns whether {@code geom1} equals {@code geom2} and their coordinates * and component Geometries are listed in the same order. */ public static boolean ST_OrderingEquals(Geom geom1, Geom geom2) { return GeometryEngine.equals(geom1.g(), geom2.g(), geom1.sr()); }
/** Returns whether {@code geom1} equals {@code geom2} and their coordinates * and component Geometries are listed in the same order. */ public static boolean ST_OrderingEquals(Geom geom1, Geom geom2) { return GeometryEngine.equals(geom1.g(), geom2.g(), geom1.sr()); }
/** Returns whether {@code geom1} equals {@code geom2}. */ public static boolean ST_Equals(Geom geom1, Geom geom2) { return GeometryEngine.equals(geom1.g(), geom2.g(), geom1.sr()); }
/** * OGC equals. Performs topological comparison with tolerance. * This is different from equals(Object), that uses exact comparison. */ public boolean Equals(OGCGeometry another) { if (this == another) return !isEmpty(); if (another == null) return false; if (another.geometryType() == OGCConcreteGeometryCollection.TYPE) { return another.Equals(this); } com.esri.core.geometry.Geometry geom1 = getEsriGeometry(); com.esri.core.geometry.Geometry geom2 = another.getEsriGeometry(); return com.esri.core.geometry.GeometryEngine.equals(geom1, geom2, getEsriSpatialReference()); }
/** * OGC equals. Performs topological comparison with tolerance. * This is different from equals(Object), that uses exact comparison. */ public boolean Equals(OGCGeometry another) { if (this == another) return !isEmpty(); if (another == null) return false; if (another.geometryType() == OGCConcreteGeometryCollection.TYPE) { return another.Equals(this); } com.esri.core.geometry.Geometry geom1 = getEsriGeometry(); com.esri.core.geometry.Geometry geom2 = another.getEsriGeometry(); return com.esri.core.geometry.GeometryEngine.equals(geom1, geom2, getEsriSpatialReference()); }