Search in sources :

Example 1 with BBOXDocument

use of net.opengis.fes.x20.BBOXDocument in project arctic-sea by 52North.

the class FesEncoderv20 method encodeSpatialFilter.

private XmlObject encodeSpatialFilter(SpatialFilter spatialFilter) throws EncodingException {
    final BBOXDocument bboxDoc = BBOXDocument.Factory.newInstance(getXmlOptions());
    final BBOXType bbox = bboxDoc.addNewBBOX();
    if (spatialFilter.hasValueReference()) {
        bbox.set(encodeReferenceValue(spatialFilter.getValueReference()));
    }
    // TODO check if srid is needed, then add as HelperValue
    bbox.setExpression(encodeExpression(spatialFilter.getGeometry()));
    return bbox;
}
Also used : BBOXType(net.opengis.fes.x20.BBOXType) BBOXDocument(net.opengis.fes.x20.BBOXDocument)

Aggregations

BBOXDocument (net.opengis.fes.x20.BBOXDocument)1 BBOXType (net.opengis.fes.x20.BBOXType)1