use of net.opengis.fes.x20.BBOXType in project ddf by codice.
the class CswFilterFactory method createBBoxType.
private JAXBElement<BBOXType> createBBoxType(String propertyName, String wkt) {
BBOXType bboxType = new BBOXType();
JAXBElement<EnvelopeType> envelope = createEnvelopeType(wkt);
bboxType.setEnvelope(envelope);
bboxType.setPropertyName(createPropertyNameType(propertyName));
return filterObjectFactory.createBBOX(bboxType);
}
use of net.opengis.fes.x20.BBOXType in project ddf by codice.
the class TestWfsFilterDelegate method testDisjointAsNotBBox.
@Test
public void testDisjointAsNotBBox() throws SAXException, IOException, JAXBException {
WfsFilterDelegate delegate = setupFilterDelegate(SPATIAL_OPERATORS.BBOX.toString());
FilterType filter = delegate.disjoint(Metacard.ANY_GEO, POLYGON);
assertTrue(filter.getLogicOps().getValue() instanceof UnaryLogicOpType);
UnaryLogicOpType type = (UnaryLogicOpType) filter.getLogicOps().getValue();
assertTrue(type.getSpatialOps().getValue() instanceof BBOXType);
assertXMLEqual(MockWfsServer.getNotBboxXmlFilter(), getXmlFromMarshaller(filter));
}
use of net.opengis.fes.x20.BBOXType in project ddf by codice.
the class WfsFilterDelegate method buildBBoxType.
private JAXBElement<BBOXType> buildBBoxType(String propertyName, String wkt) {
BBOXType bboxType = new BBOXType();
bboxType.setExpression(filterObjectFactory.createValueReference(propertyName));
try {
bboxType.setAny(createEnvelope(getGeometryFromWkt(wkt)));
} catch (ParseException e) {
throw new UnsupportedOperationException("Unable to parse WKT Geometry [" + wkt + "]", e);
}
return filterObjectFactory.createBBOX(bboxType);
}
Aggregations