Search in sources :

Example 1 with BinarySpatialOpType

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));
}
Also used : BinarySpatialOpType(net.opengis.filter.v_1_1_0.BinarySpatialOpType) Test(org.junit.Test)

Example 2 with BinarySpatialOpType

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));
}
Also used : BinarySpatialOpType(net.opengis.filter.v_1_1_0.BinarySpatialOpType) Test(org.junit.Test)

Example 3 with BinarySpatialOpType

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));
}
Also used : BinarySpatialOpType(net.opengis.filter.v_1_1_0.BinarySpatialOpType) Test(org.junit.Test)

Example 4 with BinarySpatialOpType

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));
}
Also used : BinarySpatialOpType(net.opengis.filter.v_1_1_0.BinarySpatialOpType) Test(org.junit.Test)

Example 5 with BinarySpatialOpType

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));
}
Also used : FilterType(net.opengis.filter.v_2_0_0.FilterType) BinarySpatialOpType(net.opengis.filter.v_2_0_0.BinarySpatialOpType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)17 BinarySpatialOpType (net.opengis.filter.v_1_1_0.BinarySpatialOpType)12 BinarySpatialOpType (net.opengis.filter.v_2_0_0.BinarySpatialOpType)9 FilterType (net.opengis.filter.v_2_0_0.FilterType)9 ArrayList (java.util.ArrayList)3 FilterCapabilities (net.opengis.filter.v_2_0_0.FilterCapabilities)3 SpatialOperatorType (net.opengis.filter.v_2_0_0.SpatialOperatorType)3 FeatureAttributeDescriptor (org.codice.ddf.spatial.ogc.wfs.catalog.common.FeatureAttributeDescriptor)3 GeometryOperand (net.opengis.filter.v_2_0_0.GeometryOperandsType.GeometryOperand)2 UnaryLogicOpType (net.opengis.filter.v_2_0_0.UnaryLogicOpType)2 Geometry (com.vividsolutions.jts.geom.Geometry)1 PropertyNameType (net.opengis.filter.v_1_1_0.PropertyNameType)1 AbstractGeometryType (net.opengis.gml.v_3_1_1.AbstractGeometryType)1 EnvelopeType (net.opengis.gml.v_3_1_1.EnvelopeType)1