Search in sources :

Example 1 with InsertFeatureOfInterestType

use of net.opengis.ifoi.x10.InsertFeatureOfInterestType in project arctic-sea by 52North.

the class InsertFeatureOfInterestDecoder method parseInsertFeatureOfInterest.

private InsertFeatureOfInterestRequest parseInsertFeatureOfInterest(InsertFeatureOfInterestDocument ifoid) throws DecodingException {
    InsertFeatureOfInterestRequest request = null;
    InsertFeatureOfInterestType ifoit = ifoid.getInsertFeatureOfInterest();
    if (ifoit != null) {
        request = new InsertFeatureOfInterestRequest();
        request.setVersion(ifoit.getVersion());
        request.setService(ifoit.getService());
        if (CollectionHelper.isNotNullOrEmpty(ifoit.getFeatureMemberArray())) {
            parseFeatureMember(ifoit, request);
        }
    } else {
        throw new DecodingException("Received XML document is not valid. Set log level to debug to get more details");
    }
    return request;
}
Also used : InsertFeatureOfInterestType(net.opengis.ifoi.x10.InsertFeatureOfInterestType) InsertFeatureOfInterestRequest(org.n52.shetland.ogc.sos.ifoi.InsertFeatureOfInterestRequest) DecodingException(org.n52.svalbard.decode.exception.DecodingException)

Aggregations

InsertFeatureOfInterestType (net.opengis.ifoi.x10.InsertFeatureOfInterestType)1 InsertFeatureOfInterestRequest (org.n52.shetland.ogc.sos.ifoi.InsertFeatureOfInterestRequest)1 DecodingException (org.n52.svalbard.decode.exception.DecodingException)1