@Override public Object read(Object request, Map kvp, Map rawKvp) throws Exception { GetCoverageType getCoverage = (GetCoverageType) super.read(request, kvp, rawKvp); // grab coverage info to perform further checks if (getCoverage.getIdentifier() == null) throw new WcsException( "identifier parameter is mandatory", MissingParameterValue, "identifier"); // build the domain subset getCoverage.setDomainSubset(parseDomainSubset(kvp)); // build output element getCoverage.setOutput(parseOutputElement(kvp)); return getCoverage; }
@Override public Object read(Object request, Map kvp, Map rawKvp) throws Exception { GetCoverageType getCoverage = (GetCoverageType) super.read(request, kvp, rawKvp); // grab coverage info to perform further checks if (getCoverage.getIdentifier() == null) throw new WcsException("identifier parameter is mandatory", MissingParameterValue, "identifier"); // build the domain subset getCoverage.setDomainSubset(parseDomainSubset(kvp)); // build output element getCoverage.setOutput(parseOutputElement(kvp)); return getCoverage; }
private WCS2GetCoverageRequestBuilder() { getCoverageType = Wcs20Factory.eINSTANCE.createGetCoverageType(); wcs111GetCoverage = Wcs11Factory.eINSTANCE.createGetCoverageType(); wcs111GetCoverage.setVersion("1.1.1"); OutputType outputType = Wcs11Factory.eINSTANCE.createOutputType(); outputType.setFormat("image/tiff"); wcs111GetCoverage.setOutput(outputType); getCoverageType.setVersion("2.0.0"); getCoverageType.setFormat("image/tiff"); }