Search in sources :

Example 6 with DistanceType

use of net.opengis.filter.v_1_1_0.DistanceType in project ddf by codice.

the class CswFilterFactory method createDistanceType.

private DistanceType createDistanceType(double distance, String units) {
    DistanceType distanceType = new DistanceType();
    distanceType.setUnits(units);
    /**
         * With the original filter-v_1_1_0-schema_1.1.0.jar, we were unable to set content (the
         * actual distance value) on DistanceType. The attribute mixed="true" is missing from the
         * complexType DistanceType in filter.xsd. This prevents Beyond and DWithin from working. To
         * correct this, we fixed filter.xsd and rebuilt the JAXB bindings (see project
         * ogc-filter-v_1_1_0-schema-bindings).
         */
    distanceType.setContent(String.valueOf(distance));
    return distanceType;
}
Also used : DistanceType(net.opengis.filter.v_1_1_0.DistanceType)

Aggregations

DistanceBufferType (net.opengis.filter.v_1_1_0.DistanceBufferType)4 DistanceType (net.opengis.filter.v_1_1_0.DistanceType)4 PropertyNameType (net.opengis.filter.v_1_1_0.PropertyNameType)3 Geometry (com.vividsolutions.jts.geom.Geometry)2 AbstractGeometryType (net.opengis.gml.v_3_1_1.AbstractGeometryType)1 DistanceType (ogc.schema.opengis.filter.v_1_0_0.DistanceType)1