public static Constraints basicConstraintsFromGeometry(final Geometry geometry) { final List<ConstraintSet> set = new LinkedList<>(); constructListOfConstraintSetsFromGeometry(geometry, set, false); return new Constraints(set); }
/** * This utility method will convert a JTS geometry to contraints that can be used in a GeoWave * query. * * @return Constraints as a mapping of NumericData objects representing ranges for a latitude * dimension and a longitude dimension */ public static GeoConstraintsWrapper basicGeoConstraintsWrapperFromGeometry( final Geometry geometry) { final List<ConstraintSet> set = new LinkedList<>(); final boolean geometryConstraintsExactMatch = constructListOfConstraintSetsFromGeometry(geometry, set, true); return new GeoConstraintsWrapper(new Constraints(set), geometryConstraintsExactMatch, geometry); }
retVal = false; for (int gi = 0; gi < n; gi++) { constructListOfConstraintSetsFromGeometry( geometry.getGeometryN(gi), destinationListOfSets,