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

The following examples show how to use com.esri.core.geometry.GeometryEngine#crosses() . 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: GeoFunctions.java    From Bats with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} contains {@code geom2} but does not
 * intersect its boundary. */
public static boolean ST_ContainsProperly(Geom geom1, Geom geom2) {
  return GeometryEngine.contains(geom1.g(), geom2.g(), geom1.sr())
      && !GeometryEngine.crosses(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 2
Source File: GeoFunctions.java    From Bats with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} crosses {@code geom2}. */
public static boolean ST_Crosses(Geom geom1, Geom geom2)  {
  return GeometryEngine.crosses(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} contains {@code geom2} but does not
 * intersect its boundary. */
public static boolean ST_ContainsProperly(Geom geom1, Geom geom2) {
  return GeometryEngine.contains(geom1.g(), geom2.g(), geom1.sr())
      && !GeometryEngine.crosses(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 4
Source File: GeoFunctions.java    From Quicksql with MIT License 4 votes vote down vote up
/** Returns whether {@code geom1} crosses {@code geom2}. */
public static boolean ST_Crosses(Geom geom1, Geom geom2)  {
  return GeometryEngine.crosses(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 5
Source File: GeoFunctions.java    From calcite with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} contains {@code geom2} but does not
 * intersect its boundary. */
public static boolean ST_ContainsProperly(Geom geom1, Geom geom2) {
  return GeometryEngine.contains(geom1.g(), geom2.g(), geom1.sr())
      && !GeometryEngine.crosses(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 6
Source File: GeoFunctions.java    From calcite with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} crosses {@code geom2}. */
public static boolean ST_Crosses(Geom geom1, Geom geom2)  {
  return GeometryEngine.crosses(geom1.g(), geom2.g(), geom1.sr());
}