use of org.opengis.geometry.Geometry in project ddf by codice.
the class CopyFilterDelegateTest method testSpatialContains.
@Test
public void testSpatialContains() {
Geometry polygonGeometry = wktToGeometry(POLYGON_WKT);
assertFilterEquals(FF.contains(TEST_PROPERTY_VALUE, polygonGeometry));
}
use of org.opengis.geometry.Geometry in project ddf by codice.
the class CopyFilterDelegateTest method testSpatialCrosses.
@Test
public void testSpatialCrosses() {
Geometry polygonGeometry = wktToGeometry(POLYGON_WKT);
assertFilterException(FF.crosses(TEST_PROPERTY_VALUE, polygonGeometry));
}
use of org.opengis.geometry.Geometry in project ddf by codice.
the class FilterAdapterTest method testSspatialCrossesFilter.
@Test
public void testSspatialCrossesFilter() {
Geometry polygonGeometry = wktToGeometry(POLYGON_WKT);
assertFilterEquals("crosses(Test,wkt(" + POLYGON_WKT + "))", FF.crosses(TEST_PROPERTY_VALUE, polygonGeometry));
}
use of org.opengis.geometry.Geometry in project ddf by codice.
the class FilterAdapterTest method testSpatialBeyondFilter.
@Test
public void testSpatialBeyondFilter() {
Geometry polygonGeometry = wktToGeometry(POLYGON_WKT);
// meters
assertFilterEquals("beyond(Test,wkt(" + POLYGON_WKT + "),10.0)", FF.beyond(TEST_PROPERTY_VALUE, polygonGeometry, DISTANCE_10, UomOgcMapping.METRE.name()));
// feet
assertFilterEquals("beyond(Test,wkt(" + POLYGON_WKT + "),3.048006096012192)", FF.beyond(TEST_PROPERTY_VALUE, polygonGeometry, DISTANCE_10, UomOgcMapping.FOOT.name()));
// nearest neighbor
assertFilterEquals("nn(Test,wkt(" + POLYGON_WKT + "))", FF.beyond(TEST_PROPERTY_VALUE, polygonGeometry, 0, UomOgcMapping.METRE.name()));
}
use of org.opengis.geometry.Geometry in project ddf by codice.
the class FilterAdapterTest method testSpatialIntersectsFilter.
@Test
public void testSpatialIntersectsFilter() {
Geometry polygonGeometry = wktToGeometry(POLYGON_WKT);
assertFilterEquals("intersects(Test,wkt(" + POLYGON_WKT + "))", FF.intersects(TEST_PROPERTY_VALUE, polygonGeometry));
}
Aggregations