|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.tools.coverage.rtb.TileGrid
public class TileGrid
This class represents a grid of tiles.
| Nested Class Summary | |
|---|---|
static class |
TileGrid.Tile
Simple container class for a tile coordinate and envelope. |
| Method Summary | |
|---|---|
static double |
calculateBaseResolution(int srcWidth,
int srcHeight,
Envelope dstEnv,
int tileSize)
Calculate the resolution for the first raster level. |
static int |
calculateOptimalTileSize(int srcWidth,
int srcHeight,
Envelope dstEnv,
int maxTileSize)
Calculate the optimal tile size, so that the last tile in a raster tree consist of exactly one tile (no borders). |
List<TileGrid.Tile> |
createTileEnvelopes()
Create a list with all tiles in this grid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public List<TileGrid.Tile> createTileEnvelopes()
public static int calculateOptimalTileSize(int srcWidth,
int srcHeight,
Envelope dstEnv,
int maxTileSize)
srcWidth - the width of the source raster (in pixel)srcHeight - the height of the source raster (in pixel)dstEnv - the envelope of the target raster (in target SRS)maxTileSize - the maximum size of each tile (in pixel)
public static double calculateBaseResolution(int srcWidth,
int srcHeight,
Envelope dstEnv,
int tileSize)
srcWidth - the width of the source raster (in pixel)srcHeight - the height of the source raster (in pixel)dstEnv - the envelope of the target raster (in target SRS)tileSize - the size of each tile (in pixel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||