400, "MissingParameterValue", "TILEMATRIX", "No TILEMATRIX specified"); long z = gridSubset.getGridIndex(tileMatrix);
public void testGridIndex() throws Exception { BoundingBox bbox = new BoundingBox(0, 0, 180, 90); int zoomStart = 3; int zoomStop = 9; GridSubset grid = GridSubsetFactory.createGridSubSet( gridSetBroker.getWorldEpsg4326(), bbox, zoomStart, zoomStop); String[] gridNames = grid.getGridNames(); for (int i = 0, z = zoomStart; i < gridNames.length; i++, z++) { assertEquals(z, grid.getGridIndex(gridNames[i])); } } }
when(subset.getGridIndex("testGridset:2")).thenReturn(2L); when(subset.getCoverage(2)).thenReturn(new long[] {1, 1, 8, 8});
when(subset.getGridIndex("testGridset:2")).thenReturn(2L); when(subset.getCoverage(2)).thenReturn(new long[] {1, 1, 8, 8});