public BoundingBox getGridSetBounds() { return gridSet.getBounds(); }
@Test public void testBounds() throws Exception { BoundingBox bboxTL = gridSetTL.getBounds(); BoundingBox bboxBL = gridSetBL.getBounds(); BoundingBox bboxTLswap = gridSetTLswap.getBounds(); BoundingBox bboxBLswap = gridSetBLswap.getBounds(); BoundingBox solution = new BoundingBox(-180.0, -90.0, 180, 90); assertThat(bboxTL, closeTo(solution, 0.00000001)); assertThat(bboxBL, closeTo(solution, 0.00000001)); assertThat(bboxTLswap, closeTo(solution, 0.00000001)); assertThat(bboxBLswap, closeTo(solution, 0.00000001)); }
BoundingBox gridSetBounds = gridSet.getBounds(); if (extent == null || extent.contains(gridSetBounds)) { fullCoverage = true;
BoundingBox prescribedBounds = gridSetBroker.WORLD_EPSG3857.getBounds(); return JTS.toGeometry(new Envelope(prescribedBounds.getMinX(), prescribedBounds .getMaxX(), prescribedBounds.getMinY(), prescribedBounds.getMaxY()));
BoundingBox prescribedBounds = gridSetBroker.getWorldEpsg3857().getBounds(); return JTS.toGeometry( new Envelope(
public void testBounds() { assertTrue(gridset.isTopLeftAligned()); BoundingBox bounds = gridset.getBounds(); TileOrigin tileOrigin = cacheInfo.getTileCacheInfo().getTileOrigin(); assertEquals(tileOrigin.getX(), bounds.getMinX()); assertEquals(tileOrigin.getY(), bounds.getMaxY()); assertTrue(bounds.contains(layerBounds)); }