@Test public void testGetLowertNeighbour() { WMTSTileIdentifier neighbour = new WMTSTileIdentifier(10, 13, new WMTSZoomLevel(5, service), "SomeService"); Assert.assertEquals(neighbour, this.tileId.getLowerNeighbour()); }
@Override public TileIdentifier getLowerNeighbour() { int newY = getY() + 1; if (newY >= ((WMTSZoomLevel) getZoomLevel()).getMaxTilePerColNumber()) return null; else return new WMTSTileIdentifier(getX(), newY, getZoomLevel(), getServiceName()); }
WMTSTileIdentifier extends TileIdentifier { @Override public TileIdentifier getLowerNeighbour() { int newY = getY() + 1; if (newY >= ((WMTSZoomLevel) getZoomLevel()).getMaxTilePerColNumber()) return null; else return new WMTSTileIdentifier(getX(), newY, getZoomLevel(), getServiceName()); } }
WMTSTileIdentifier extends TileIdentifier { @Override public TileIdentifier getLowerNeighbour() { int newY = getY() + 1; if (newY >= ((WMTSZoomLevel) getZoomLevel()).getMaxTilePerColNumber()) return null; else return new WMTSTileIdentifier(getX(), newY, getZoomLevel(), getServiceName()); } WMTSTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); }
WMTSTileIdentifier extends TileIdentifier { @Override public TileIdentifier getLowerNeighbour() { int newY = getY() + 1; if (newY >= ((WMTSZoomLevel) getZoomLevel()).getMaxTilePerColNumber()) return null; else return new WMTSTileIdentifier(getX(), newY, getZoomLevel(), getServiceName()); } WMTSTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); @Override String getId(); @Override String getCode(); @Override TileIdentifier getRightNeighbour(); @Override TileIdentifier getLowerNeighbour(); }
WMTSTileIdentifier extends TileIdentifier { @Override public TileIdentifier getLowerNeighbour() { int newY = getY() + 1; if (newY >= ((WMTSZoomLevel) getZoomLevel()).getMaxTilePerColNumber()) return null; else return new WMTSTileIdentifier(getX(), newY, getZoomLevel(), getServiceName()); } WMTSTileIdentifier(int x, int y, ZoomLevel zoomLevel, String serviceName); @Override String getId(); @Override String getCode(); @Override TileIdentifier getRightNeighbour(); @Override TileIdentifier getLowerNeighbour();  }