private OutputType parseOutputElement(Map kvp) throws Exception { final OutputType output = Wcs111Factory.eINSTANCE.createOutputType(); output.setGridCRS(Wcs111Factory.eINSTANCE.createGridCrsType()); // check and set store Boolean store = (Boolean) kvp.get("store"); if (store != null) output.setStore(store.booleanValue()); // check and set format String format = (String) kvp.get("format"); if (format == null) throw new WcsException("format parameter is mandatory", MissingParameterValue, "format"); output.setFormat(format); // set the other gridcrs properties final GridCrsType gridCRS = output.getGridCRS(); gridCRS.setGridBaseCRS((String) kvp.get("gridBaseCrs")); gridCRS.setGridType((String) kvp.get("gridType")); gridCRS.setGridCS((String) kvp.get("gridCS")); gridCRS.setGridOrigin((Double[]) kvp.get("GridOrigin")); gridCRS.setGridOffsets((Double[]) kvp.get("GridOffsets")); return output; }
throw new WcsException( "format parameter is mandatory", MissingParameterValue, "format"); output.setFormat(format);
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"); }