Search in sources :

Example 1 with TimeOverlappedByType

use of org.geotoolkit.ogc.xml.v110.TimeOverlappedByType in project geotoolkit by Geomatys.

the class FilterFactoryImpl method overlappedBy.

@Override
public TemporalOperator<Object> overlappedBy(final Expression<Object, ?> expr1, final Expression<Object, ?> expr2) {
    Object temporal = null;
    PropertyNameType propName = null;
    if (expr1 instanceof PropertyNameType) {
        propName = (PropertyNameType) expr1;
        temporal = expr2;
    } else if (expr2 instanceof PropertyNameType) {
        propName = (PropertyNameType) expr2;
        temporal = expr1;
    }
    return new TimeOverlappedByType(propName.getXPath(), temporal);
}
Also used : TimeOverlappedByType(org.geotoolkit.ogc.xml.v110.TimeOverlappedByType) PropertyNameType(org.geotoolkit.ogc.xml.v110.PropertyNameType)

Aggregations

PropertyNameType (org.geotoolkit.ogc.xml.v110.PropertyNameType)1 TimeOverlappedByType (org.geotoolkit.ogc.xml.v110.TimeOverlappedByType)1