|
Description:
|
Hi,
this Jira is coming out after a discussion with Andrea.
I'm not able to run a complete GeoServer compilation with JUnit tests enabled.
The problem is into this test:
src/wcs1_1/src/test/java/org/geoserver/wcs/GetCoverageTest.java
index d42c25a..becbf3f 100644
@@ -205,7 +205,8 @@ public class GetCoverageTest extends AbstractGetCoverageTest {
...
public void testReproject() throws Exception {
// add the target code to the supported ones
Catalog catalog = getCatalog();
final String layerId = getLayerId(TASMANIA_BM);
CoverageInfo ci = catalog.getCoverageByName(layerId);
ci.getResponseSRS().add("EPSG:3857");
catalog.save(ci);
// do the request
Map<String, Object> raw = baseMap();
raw.put("identifier", layerId);
raw.put("format", "image/geotiff");
raw.put("BoundingBox", "-80,-180,80,180,urn:ogc:def:crs:EPSG:6.6:4326"
raw.put("GridBaseCRS", "EPSG:3857");
GridCoverage[] coverages = executeGetCoverageKvp(raw);
Envelope envelope = coverages[0].getEnvelope();
System.out.println(envelope);
CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:3857");
assertEquals(targetCRS, envelope.getCoordinateReferenceSystem());
ReferencedEnvelope nativeBounds = ci.getNativeBoundingBox();
ReferencedEnvelope expected = nativeBounds.transform(targetCRS, true);
assertEquals(expected.getMinimum(0), envelope.getMinimum(0));
assertEquals(expected.getMaximum(0), envelope.getMaximum(0));
assertEquals(expected.getMinimum(1), envelope.getMinimum(1));
assertEquals(expected.getMaximum(1), envelope.getMaximum(1));
}
...
}
Commenting out this test compilation and tests are successfully completed.
I've also tried (with no success) to reduce the bounding box:
raw.put("BoundingBox", "-45,140,-40,150,urn:ogc:def:crs:EPSG:6.6:4326");
Jstack is attached.
|