Search in sources :

Example 1 with Restriction

use of eu.esdihumboldt.commons.goml.omwg.Restriction in project hale by halestudio.

the class ModelClassMappingCell method buildMappingConditions.

private List<ModelMappingCondition> buildMappingConditions(List<Restriction> mappingRestrictions) throws TranslationException {
    List<ModelMappingCondition> result;
    try {
        result = new ArrayList<ModelMappingCondition>();
        for (Restriction restriction : mappingRestrictions) {
            ModelMappingCondition condition = DIGESTER.translate(CQL.toFilter(restriction.getCqlStr()));
            result.add(condition);
        }
    } catch (CQLException e) {
        throw new TranslationException(e);
    }
    return result;
}
Also used : Restriction(eu.esdihumboldt.commons.goml.omwg.Restriction) TranslationException(com.onespatial.jrc.tns.oml_to_rif.api.TranslationException) CQLException(org.geotools.filter.text.cql2.CQLException)

Aggregations

TranslationException (com.onespatial.jrc.tns.oml_to_rif.api.TranslationException)1 Restriction (eu.esdihumboldt.commons.goml.omwg.Restriction)1 CQLException (org.geotools.filter.text.cql2.CQLException)1