Java Code Examples for com.esri.core.geometry.GeometryEngine#disjoint()

The following examples show how to use com.esri.core.geometry.GeometryEngine#disjoint() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeometryUtils.java    From presto with Apache License 2.0 5 votes vote down vote up
public static boolean disjoint(Envelope envelope, OGCGeometry ogcGeometry)
{
    GeometryCursor cursor = ogcGeometry.getEsriGeometryCursor();
    while (true) {
        Geometry geometry = cursor.next();
        if (geometry == null) {
            return true;
        }

        if (!GeometryEngine.disjoint(geometry, envelope, null)) {
            return false;
        }
    }
}
 
Example 2
Source File: GeoFunctions.java    From Bats with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} and {@code geom2} are disjoint. */
public static boolean ST_Disjoint(Geom geom1, Geom geom2)  {
  return GeometryEngine.disjoint(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 3
Source File: GeoFunctions.java    From Quicksql with MIT License 4 votes vote down vote up
/** Returns whether {@code geom1} and {@code geom2} are disjoint. */
public static boolean ST_Disjoint(Geom geom1, Geom geom2)  {
  return GeometryEngine.disjoint(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 4
Source File: GeoFunctions.java    From calcite with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} and {@code geom2} are disjoint. */
public static boolean ST_Disjoint(Geom geom1, Geom geom2)  {
  return GeometryEngine.disjoint(geom1.g(), geom2.g(), geom1.sr());
}