static class CustomLayerImplementation { private String name; private String title; private boolean isAuthorized; private List<String> formats; public CustomLayerImplementation( String name, String title, boolean isAuthorized, List<String> formats) { this.name = name; this.title = title; this.isAuthorized = isAuthorized; this.formats = formats; } }
tl.getGridSubsetsForSRS(SRS.getSRS(values.get("srs"))).iterator().next();
int epsgId = Integer.parseInt(srs.substring(srs.indexOf(':') + 1)); SRS srs2 = SRS.getSRS(epsgId); crsMatchingGridSubsets = tileLayer.getGridSubsetsForSRS(srs2);
epsgId = Integer.parseInt(srs.substring(srs.lastIndexOf(':') + 1)); SRS srs2 = SRS.getSRS(epsgId); crsMatchingGridSubsets = tileLayer.getGridSubsetsForSRS(srs2);
List<GridSubset> crsMatches = tl.getGridSubsetsForSRS(srs); if (!crsMatches.isEmpty()) { if (crsMatches.size() == 1) {
when(tileLayer.getGridSubsetsForSRS(eq(srs))).thenReturn(list);
final int tileHeight = Integer.parseInt(values.get("height")); final List<GridSubset> crsMatchingSubsets = tileLayer.getGridSubsetsForSRS(srs); if (crsMatchingSubsets.isEmpty()) { throw new ServiceException("Unable to match requested SRS " + srs
when(tileLayer.getGridSubsetsForSRS(eq(srs))).thenReturn(list);
final int tileHeight = Integer.parseInt(values.get("height")); final List<GridSubset> crsMatchingSubsets = tileLayer.getGridSubsetsForSRS(srs); if (crsMatchingSubsets.isEmpty()) { throw new ServiceException(
when(tileLayer.getGridSubsetsForSRS(eq(srs))).thenReturn(list);