|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.container.GriddedTileContainer
public abstract class GriddedTileContainer
Abstract base class for TileContainer
s based on a rectangular grid of disjunct, equal-sized cells (raster
tiles).
Field Summary | |
---|---|
protected int |
tileSamplesX
Number of samples of each raster tile in x-direction. |
protected int |
tileSamplesY
Number of samples of each raster tile in y-direction. |
Constructor Summary | |
---|---|
protected |
GriddedTileContainer(GridMetaInfoFile infoFile)
Creates a new GriddedTileContainer instances. |
protected |
GriddedTileContainer(RasterGeoReference.OriginLocation location,
Envelope envelope,
int rows,
int columns,
int tileSamplesX,
int tileSamplesY)
Creates a new GriddedTileContainer instances. |
Method Summary | |
---|---|
int |
getColumns()
Returns the number of columns of the grid. |
Envelope |
getEnvelope()
Returns the envelope of all tiles in this container. |
RasterDataInfo |
getRasterDataInfo()
Return the first tile of this container. |
RasterGeoReference |
getRasterReference()
Returns the RasterReference of all tiles in this container. |
ResolutionInfo |
getResolutionInfo()
|
int |
getRows()
Returns the number of rows of the grid. |
abstract AbstractRaster |
getTile(int rowId,
int columnId)
Returns the raster tile at the given grid position. |
protected Envelope |
getTileEnvelope(int rowId,
int columnId)
Calculates the envelope for a tile at a given position in the grid. |
protected int |
getTileId(int columnId,
int rowId)
Calculates the id for a tile at a given position in the grid. |
List<AbstractRaster> |
getTiles(Envelope env)
Returns all tiles that intersects the envelope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int tileSamplesX
protected final int tileSamplesY
Constructor Detail |
---|
protected GriddedTileContainer(GridMetaInfoFile infoFile)
GriddedTileContainer
instances.
infoFile
- containing the relevant information.protected GriddedTileContainer(RasterGeoReference.OriginLocation location, Envelope envelope, int rows, int columns, int tileSamplesX, int tileSamplesY)
GriddedTileContainer
instances.
location
- envelope
- area of the samples of the contained tilesrows
- number of rows in the cell gridcolumns
- number of columns in the cell gridtileSamplesX
- number of samples of each raster tile in x-directiontileSamplesY
- number of samples of each raster tile in y-directionMethod Detail |
---|
public abstract AbstractRaster getTile(int rowId, int columnId)
rowId
- row id, must in the range [0 ... #rows - 1]columnId
- column id, must be in the range [0 ... #columns - 1]
public List<AbstractRaster> getTiles(Envelope env)
TileContainer
getTiles
in interface TileContainer
env
- return List with tiles
List
with all intersecting tiles.public Envelope getEnvelope()
TileContainer
getEnvelope
in interface TileContainer
public RasterGeoReference getRasterReference()
TileContainer
getRasterReference
in interface TileContainer
public int getRows()
public int getColumns()
protected int getTileId(int columnId, int rowId)
columnId
- column id, must be in the range [0 ... #columns - 1]rowId
- row id, must be in the range [0 ... #rows - 1]
protected Envelope getTileEnvelope(int rowId, int columnId)
columnId
- column id, must be in the range [0 ... #columns - 1]rowId
- row id, must be in the range [0 ... #rows - 1]
public RasterDataInfo getRasterDataInfo()
TileContainer
getRasterDataInfo
in interface TileContainer
public ResolutionInfo getResolutionInfo()
getResolutionInfo
in interface TileContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |