use of net.opengis.filter.v_2_0_0.BinarySpatialOpType in project ddf by codice.
the class CswQueryFactoryTest method testPostGetRecordsSpatialEqualsOgcFilter.
@Test
public void testPostGetRecordsSpatialEqualsOgcFilter() throws CswException, UnsupportedQueryException, SourceUnavailableException, FederationException {
BinarySpatialOpType op = createBinarySpatialOpType();
ogcSpatialQuery(Equals.class, filterObjectFactory.createEquals(op));
}
use of net.opengis.filter.v_2_0_0.BinarySpatialOpType in project ddf by codice.
the class CswQueryFactoryTest method testPostGetRecordsSpatialContainsOgcFilter.
@Test
public void testPostGetRecordsSpatialContainsOgcFilter() throws CswException, UnsupportedQueryException, SourceUnavailableException, FederationException {
BinarySpatialOpType op = createBinarySpatialOpType();
ogcSpatialQuery(Contains.class, filterObjectFactory.createContains(op));
}
use of net.opengis.filter.v_2_0_0.BinarySpatialOpType in project ddf by codice.
the class CswQueryFactoryTest method testPostGetRecordsSpatialDisjointOgcFilter.
@Test
public void testPostGetRecordsSpatialDisjointOgcFilter() throws CswException, UnsupportedQueryException, SourceUnavailableException, FederationException {
BinarySpatialOpType op = createBinarySpatialOpType();
ogcSpatialQuery(Disjoint.class, filterObjectFactory.createDisjoint(op));
}
use of net.opengis.filter.v_2_0_0.BinarySpatialOpType in project ddf by codice.
the class CswQueryFactoryTest method testPostGetRecordsSpatialOverlapsOgcFilter.
@Test
public void testPostGetRecordsSpatialOverlapsOgcFilter() throws CswException, UnsupportedQueryException, SourceUnavailableException, FederationException {
BinarySpatialOpType op = createBinarySpatialOpType();
ogcSpatialQuery(Overlaps.class, filterObjectFactory.createOverlaps(op));
}
use of net.opengis.filter.v_2_0_0.BinarySpatialOpType in project ddf by codice.
the class TestWfsFilterDelegate method testDisjointFilter.
@Test
public void testDisjointFilter() throws SAXException, IOException, JAXBException {
WfsFilterDelegate delegate = setupFilterDelegate(SPATIAL_OPERATORS.Disjoint.toString());
FilterType filter = delegate.disjoint(Metacard.ANY_GEO, POLYGON);
assertTrue(filter.getSpatialOps().getValue() instanceof BinarySpatialOpType);
assertXMLEqual(MockWfsServer.getDisjointXmlFilter(), getXmlFromMarshaller(filter));
}
Aggregations