@Test @Ignore @Category(UnitTest.class) public void testGetTile() { Assert.fail("Not yet implemented"); }
public MrGeoRaster getTile(long tx, long ty) throws TileNotFoundException { if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) { String msg = String.format( "Tile x/y out of range. (%d, %d) range: (%d, %d) to (%d, %d) (inclusive)", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY()); throw new TileNotFoundException(msg); } if (reader == null) { openReader(); } MrGeoRaster result = reader.get(new TileIdWritable(TMSUtils.tileid(tx, ty, getZoomlevel()))); if (result == null) { String msg = String.format("Tile (%d, %d) not found", tx, ty); throw new TileNotFoundException(msg); } return result; }
MrsImage implements AutoCloseable { public MrGeoRaster getTile(long tx, long ty) throws TileNotFoundException { if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) { String msg = String.format( "Tile x/y out of range. (%d, %d) range: (%d, %d) to (%d, %d) (inclusive)", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY()); throw new TileNotFoundException(msg); } if (reader == null) { openReader(); } MrGeoRaster result = reader.get(new TileIdWritable(TMSUtils.tileid(tx, ty, getZoomlevel()))); if (result == null) { String msg = String.format("Tile (%d, %d) not found", tx, ty); throw new TileNotFoundException(msg); } return result; } }
MrsImage implements AutoCloseable { public MrGeoRaster getTile(long tx, long ty) throws TileNotFoundException { if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) { String msg = String.format( "Tile x/y out of range. (%d, %d) range: (%d, %d) to (%d, %d) (inclusive)", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY()); throw new TileNotFoundException(msg); } if (reader == null) { openReader(); } MrGeoRaster result = reader.get(new TileIdWritable(TMSUtils.tileid(tx, ty, getZoomlevel()))); if (result == null) { String msg = String.format("Tile (%d, %d) not found", tx, ty); throw new TileNotFoundException(msg); } return result; } private  MrsImage(MrsImageDataProvider provider, int zoomlevel); }
MrsImage implements AutoCloseable { public MrGeoRaster getTile(long tx, long ty) throws TileNotFoundException { if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) { String msg = String.format( "Tile x/y out of range. (%d, %d) range: (%d, %d) to (%d, %d) (inclusive)", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY()); throw new TileNotFoundException(msg); } if (reader == null) { openReader(); } MrGeoRaster result = reader.get(new TileIdWritable(TMSUtils.tileid(tx, ty, getZoomlevel()))); if (result == null) { String msg = String.format("Tile (%d, %d) not found", tx, ty); throw new TileNotFoundException(msg); } return result; } private  MrsImage(MrsImageDataProvider provider, int zoomlevel); @SuppressWarnings("squid:S1166") // Exceptions are ignored. This is OK. static MrsImage open(MrsImageDataProvider provider, int zoomlevel); static MrsImage open(String name, int zoomlevel,
    ProviderProperties providerProperties); static Set<Long> getTileIdsFromBounds(Bounds bounds, int zoomlevel, int tilesize); void close(); LatLng convertToLatLng(double px, double py); LatLng convertToPixelCenterLatLng(double px, double py); final double convertToWorldX(double px); final double convertToWorldY(double py); MrGeoRaster getAnyTile(); Bounds getBounds(); Bounds getBounds(int tx, int ty); double[] getExtrema(); long getHeight(); long getMaxTileX(); long getMaxTileY(); int getMaxZoomlevel(); MrsPyramidMetadata getMetadata(); long getMinTileX(); long getMinTileY(); String getName(); long getNumXTiles(); long getNumYTiles(); long getPixelMaxX(); long getPixelMaxY(); long getPixelMinX(); long getPixelMinY(); LongRectangle getPixelRect(); MrGeoRaster getTile(long tx, long ty); LongRectangle getTileBounds(); int getTileHeight(); KVIterator<TileIdWritable, MrGeoRaster> getTiles(); KVIterator<TileIdWritable, MrGeoRaster> getTiles(LongRectangle tileBounds); KVIterator<TileIdWritable, MrGeoRaster> getTiles(TileIdWritable start,
    TileIdWritable end); int getTilesize(); int getTileType(); int getTileWidth(); long getWidth(); int getZoomlevel(); boolean isTileEmpty(long tx, long ty); @Override String toString(); Set<Long> getTileIdsFromBounds(Bounds bounds); MrGeoRaster getRaster(); MrGeoRaster getRaster(Bounds bounds); MrGeoRaster getRaster(long[] tiles); MrGeoRaster getRaster(LongRectangle tileBounds); MrGeoRaster getRaster(TileIdWritable[] tiles); @SuppressWarnings("squid:S1166") // TileNotFoundException exceptions are caught and ignored. This is OK MrGeoRaster getRaster(Tile[] tiles); MrGeoRaster getRaster(TileBounds tileBounds); }
MrsImage implements AutoCloseable { public MrGeoRaster getTile(long tx, long ty) throws TileNotFoundException { if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) { String msg = String.format( "Tile x/y out of range. (%d, %d) range: (%d, %d) to (%d, %d) (inclusive)", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY()); throw new TileNotFoundException(msg); } if (reader == null) { openReader(); } MrGeoRaster result = reader.get(new TileIdWritable(TMSUtils.tileid(tx, ty, getZoomlevel()))); if (result == null) { String msg = String.format("Tile (%d, %d) not found", tx, ty); throw new TileNotFoundException(msg); } return result; } private  MrsImage(MrsImageDataProvider provider, int zoomlevel); @SuppressWarnings("squid:S1166") // Exceptions are ignored. This is OK. static MrsImage open(MrsImageDataProvider provider, int zoomlevel); static MrsImage open(String name, int zoomlevel,
    ProviderProperties providerProperties); static Set<Long> getTileIdsFromBounds(Bounds bounds, int zoomlevel, int tilesize); void close(); LatLng convertToLatLng(double px, double py); LatLng convertToPixelCenterLatLng(double px, double py); final double convertToWorldX(double px); final double convertToWorldY(double py); MrGeoRaster getAnyTile(); Bounds getBounds(); Bounds getBounds(int tx, int ty); double[] getExtrema(); long getHeight(); long getMaxTileX(); long getMaxTileY(); int getMaxZoomlevel(); MrsPyramidMetadata getMetadata(); long getMinTileX(); long getMinTileY(); String getName(); long getNumXTiles(); long getNumYTiles(); long getPixelMaxX(); long getPixelMaxY(); long getPixelMinX(); long getPixelMinY(); LongRectangle getPixelRect(); MrGeoRaster getTile(long tx, long ty); LongRectangle getTileBounds(); int getTileHeight(); KVIterator<TileIdWritable, MrGeoRaster> getTiles(); KVIterator<TileIdWritable, MrGeoRaster> getTiles(LongRectangle tileBounds); KVIterator<TileIdWritable, MrGeoRaster> getTiles(TileIdWritable start,
    TileIdWritable end); int getTilesize(); int getTileType(); int getTileWidth(); long getWidth(); int getZoomlevel(); boolean isTileEmpty(long tx, long ty); @Override String toString(); Set<Long> getTileIdsFromBounds(Bounds bounds); MrGeoRaster getRaster(); MrGeoRaster getRaster(Bounds bounds); MrGeoRaster getRaster(long[] tiles); MrGeoRaster getRaster(LongRectangle tileBounds); MrGeoRaster getRaster(TileIdWritable[] tiles); @SuppressWarnings("squid:S1166") // TileNotFoundException exceptions are caught and ignored. This is OK MrGeoRaster getRaster(Tile[] tiles); MrGeoRaster getRaster(TileBounds tileBounds);  }