Search in sources :

Example 1 with FilterType

use of net.opengis.fes.x20.FilterType in project ddf by codice.

the class CswFilterFactory method buildTouchesGeospatialFilter.

public FilterType buildTouchesGeospatialFilter(String propertyName, String wkt, BinarySpatialOperand geometryOrEnvelope) {
    FilterType filter = new FilterType();
    filter.setSpatialOps(createTouchesType(propertyName, wkt, geometryOrEnvelope));
    return filter;
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType)

Example 2 with FilterType

use of net.opengis.fes.x20.FilterType in project ddf by codice.

the class CswFilterFactory method buildPropertyIsNotEqualToFilter.

public FilterType buildPropertyIsNotEqualToFilter(String propertyName, Object literal, boolean isCaseSensitive) {
    FilterType filter = new FilterType();
    filter.setComparisonOps(createPropertyIsNotEqualTo(propertyName, literal, isCaseSensitive));
    return filter;
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType)

Example 3 with FilterType

use of net.opengis.fes.x20.FilterType in project ddf by codice.

the class CswFilterFactory method buildOverlapsGeospatialFilter.

public FilterType buildOverlapsGeospatialFilter(String propertyName, String wkt, BinarySpatialOperand geometryOrEnvelope) {
    FilterType filter = new FilterType();
    filter.setSpatialOps(createOverlapsType(propertyName, wkt, geometryOrEnvelope));
    return filter;
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType)

Example 4 with FilterType

use of net.opengis.fes.x20.FilterType in project ddf by codice.

the class CswFilterFactory method buildNotFilter.

public FilterType buildNotFilter(FilterType filter) {
    FilterType returnFilter = new FilterType();
    if (filter == null) {
        return returnFilter;
    }
    UnaryLogicOpType notType = new UnaryLogicOpType();
    if (filter.isSetComparisonOps()) {
        notType.setComparisonOps(filter.getComparisonOps());
    } else if (filter.isSetLogicOps()) {
        notType.setLogicOps(filter.getLogicOps());
    } else if (filter.isSetSpatialOps()) {
        notType.setSpatialOps(filter.getSpatialOps());
    } else {
        return returnFilter;
    }
    returnFilter.setLogicOps(filterObjectFactory.createNot(notType));
    return returnFilter;
}
Also used : UnaryLogicOpType(net.opengis.filter.v_1_1_0.UnaryLogicOpType) FilterType(net.opengis.filter.v_1_1_0.FilterType)

Example 5 with FilterType

use of net.opengis.fes.x20.FilterType in project ddf by codice.

the class CswFilterFactory method buildPropertyIsFuzzyFilter.

public FilterType buildPropertyIsFuzzyFilter(String propertyName, Object literal) {
    FilterType filter = new FilterType();
    filter.setComparisonOps(createPropertyIsFuzzy(propertyName, literal));
    return filter;
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType)

Aggregations

Test (org.junit.Test)213 FilterType (net.opengis.filter.v_1_1_0.FilterType)209 FilterType (net.opengis.filter.v_2_0_0.FilterType)58 ArrayList (java.util.ArrayList)50 JAXBElement (javax.xml.bind.JAXBElement)12 CswSourceConfiguration (org.codice.ddf.spatial.ogc.csw.catalog.common.CswSourceConfiguration)12 BinaryTemporalOpType (net.opengis.filter.v_2_0_0.BinaryTemporalOpType)11 FeatureAttributeDescriptor (org.codice.ddf.spatial.ogc.wfs.catalog.common.FeatureAttributeDescriptor)11 QName (javax.xml.namespace.QName)10 BinarySpatialOpType (net.opengis.filter.v_2_0_0.BinarySpatialOpType)10 LineString (com.vividsolutions.jts.geom.LineString)9 Date (java.util.Date)9 DistanceBufferType (net.opengis.filter.v_2_0_0.DistanceBufferType)9 UnaryLogicOpType (net.opengis.filter.v_2_0_0.UnaryLogicOpType)9 DateTime (org.joda.time.DateTime)8 Method (java.lang.reflect.Method)7 QueryConstraintType (net.opengis.cat.csw.v_2_0_2.QueryConstraintType)7 FilterCapabilities (net.opengis.filter.v_2_0_0.FilterCapabilities)7 TimePeriodType (net.opengis.gml.v_3_2_1.TimePeriodType)7 TimePositionType (net.opengis.gml.v_3_2_1.TimePositionType)7