private DomainSubsetType parseDomainSubset(Map kvp) { final DomainSubsetType domainSubset = Wcs111Factory.eINSTANCE.createDomainSubsetType(); // either bbox or timesequence must be there BoundingBoxType bbox = (BoundingBoxType) kvp.get("BoundingBox"); TimeSequenceType timeSequence = (TimeSequenceType) kvp.get("TemporalSubset"); if (timeSequence == null && bbox == null) throw new WcsException( "Bounding box cannot be null, TimeSequence has not been specified", WcsExceptionCode.MissingParameterValue, "BoundingBox"); domainSubset.setBoundingBox(bbox); domainSubset.setTemporalSubset(timeSequence); return domainSubset; }
private DomainSubsetType parseDomainSubset(Map kvp) { final DomainSubsetType domainSubset = Wcs111Factory.eINSTANCE.createDomainSubsetType(); // either bbox or timesequence must be there BoundingBoxType bbox = (BoundingBoxType) kvp.get("BoundingBox"); TimeSequenceType timeSequence = (TimeSequenceType) kvp.get("TimeSequence"); if (timeSequence == null && bbox == null) throw new WcsException( "Bounding box cannot be null, TimeSequence has not been specified", WcsExceptionCode.MissingParameterValue, "BoundingBox"); domainSubset.setBoundingBox(bbox); domainSubset.setTemporalSubset(timeSequence); return domainSubset; }