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

The following examples show how to use com.esri.core.geometry.GeometryEngine#within() . 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} is within {@code geom2}. */
public static boolean ST_Within(Geom geom1, Geom geom2)  {
  return GeometryEngine.within(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 2
Source File: GeoFunctions.java    From Quicksql with MIT License 4 votes vote down vote up
/** Returns whether {@code geom1} is within {@code geom2}. */
public static boolean ST_Within(Geom geom1, Geom geom2)  {
  return GeometryEngine.within(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 3
Source File: GeoFunctions.java    From calcite with Apache License 2.0 4 votes vote down vote up
/** Returns whether {@code geom1} is within {@code geom2}. */
public static boolean ST_Within(Geom geom1, Geom geom2)  {
  return GeometryEngine.within(geom1.g(), geom2.g(), geom1.sr());
}
 
Example 4
Source File: LocalGeofence.java    From arcgis-runtime-demos-android with Apache License 2.0 2 votes vote down vote up
/**
 * Find out if location is within geofence.
 * @param location location to compare with geofence
 * @return true if location is within geofence, otherwise false.
 */
public static boolean isWithinFence(Point location) {
  return GeometryEngine.within(location, mFenceWgs84, mWgs84Sr);
}
 
Example 5
Source File: LocalGeofence.java    From arcgis-runtime-demos-android with Apache License 2.0 2 votes vote down vote up
/**
 * Find out if location is within geofence.
 * @param location location to compare with geofence
 * @return true if location is within geofence, otherwise false.
 */
public static boolean isWithinFence(Point location) {
  return GeometryEngine.within(location, mFenceWgs84, mWgs84Sr);
}