raw.put("identifier", layerId);
raw.put("format", "image/tiff");
raw.put("BoundingBox", "-45,146,-42,147");
raw.put("gridType", GridType.GT2dGridIn2dCrs.getXmlConstant());
GetCoverageType getCoverage = (GetCoverageType) reader.read(reader.createRequest(),
parseKvp(raw), raw);
assertEquals(GridType.GT2dGridIn2dCrs.getXmlConstant(), getCoverage.getOutput()
.getGridCRS().getGridType());
raw.put("gridType", GridType.GT2dSimpleGrid.getXmlConstant());
getCoverage = (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
assertEquals(GridType.GT2dSimpleGrid.getXmlConstant(), getCoverage.getOutput().getGridCRS()
.getGridType());
// try with different case
raw.put("gridType", GridType.GT2dSimpleGrid.getXmlConstant().toUpperCase());
getCoverage = (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
assertEquals(GridType.GT2dSimpleGrid.getXmlConstant(), getCoverage.getOutput().getGridCRS()
.getGridType());
raw.put("gridType", GridType.GT2dGridIn3dCrs.getXmlConstant());
try {
reader.read(reader.createRequest(), parseKvp(raw), raw);