use of net.opengis.filter.v_2_0_0.MeasureType in project ddf by codice.
the class WfsFilterDelegate method buildDistanceBufferType.
private JAXBElement<DistanceBufferType> buildDistanceBufferType(JAXBElement<DistanceBufferType> dbt, String propertyName, String wkt, double distance) {
MeasureType measureType = new MeasureType();
measureType.setValue(distance);
// the filter adapter normalizes all distances to meters
measureType.setUom(Wfs20Constants.METERS);
dbt.getValue().setDistance(measureType);
dbt.getValue().setExpression(filterObjectFactory.createValueReference(propertyName));
dbt.getValue().setAny(createGeometryOperand(wkt));
return dbt;
}
Aggregations