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;
}
Aggregations