public class OSMCacheStruct extends java.lang.Object implements CacheStruct
FLAT, GEOGRAFIC| Constructor and Description |
|---|
OSMCacheStruct(int levels,
int tilePxWidth,
int tilePxHeight,
java.lang.String layerName,
java.lang.String baseDir,
java.lang.String fileSuffix,
long size) |
| Modifier and Type | Method and Description |
|---|---|
double |
clipDecimals(double num,
int n) |
boolean |
compare(CacheStruct struct)
Compares two structures and returns true if they are equals
|
java.lang.String |
getEPSG()
Gets the EPSG code
|
java.lang.String |
getFileSize()
If the source is a file gets the size or 0 if is not a file
|
java.lang.String |
getFileSuffix()
Gets the suffix which represents the image format
|
int |
getLayerHeightOfTileMatrixByLevel(int level)
Gets the number of rows in a specific level
|
int |
getLayerInitXTilePositionByLevel(int level)
Gets the starting X position of the layer
|
int |
getLayerInitYTilePositionByLevel(int level)
Gets the starting Y position of the layer
|
java.lang.String |
getLayerName()
Gets the layer name
|
int |
getLayerWidthOfTileMatrixByLevel(int level)
Gets the number of columns in a specific level
|
int |
getNumberOfLevels()
Gets the number of resolution levels
|
double |
getPixelSizeByLevel(int level)
Gets the pixel size of a level
|
java.lang.String |
getServerURL()
Gets the server URL
|
java.awt.geom.Point2D[] |
getTileExtent(int level,
int col,
int row)
Get the extent of an matrix element in a specific level
|
java.awt.geom.Point2D[] |
getTileExtent(Tile tile)
Gets the extent of a tile
|
java.util.List<Tile> |
getTileList(java.awt.geom.Point2D ul,
java.awt.geom.Point2D lr,
double mtsPixelXRequest)
Gets the list of tiles inside of selected area
|
java.util.List<Tile> |
getTileList(java.awt.geom.Rectangle2D r)
Gets the list of tiles inside of selected area in pixels.
|
int[] |
getTileSizeByLevel(int level)
Gets the tile size
|
double[] |
getTileSizeInRealCoordsByLevel(int level)
Gets the tile size by level in world coordinates
|
Tile |
getTileStructure(int level,
int tileCol,
int tileRow,
java.awt.geom.Point2D ul,
java.awt.geom.Point2D lr)
Builds a tile structure with all parameters that this kind of service needs.
|
Extent |
getWorldExtent() |
long |
getWorldHeightOfTileMatrixByLevel(int level)
Gets the number of rows in a specific level
|
long |
getWorldWidthOfTileMatrixByLevel(int level)
Gets the number of columns in a specific level
|
public OSMCacheStruct(int levels,
int tilePxWidth,
int tilePxHeight,
java.lang.String layerName,
java.lang.String baseDir,
java.lang.String fileSuffix,
long size)
public Extent getWorldExtent()
public int getNumberOfLevels()
CacheStructgetNumberOfLevels in interface CacheStructpublic java.lang.String getLayerName()
CacheStructgetLayerName in interface CacheStructpublic java.lang.String getServerURL()
CacheStructgetServerURL in interface CacheStructpublic java.lang.String getFileSuffix()
CacheStructgetFileSuffix in interface CacheStructpublic int[] getTileSizeByLevel(int level)
CacheStructgetTileSizeByLevel in interface CacheStructpublic double[] getTileSizeInRealCoordsByLevel(int level)
CacheStructgetTileSizeInRealCoordsByLevel in interface CacheStructpublic int getLayerWidthOfTileMatrixByLevel(int level)
CacheStructgetLayerWidthOfTileMatrixByLevel in interface CacheStructpublic int getLayerHeightOfTileMatrixByLevel(int level)
CacheStructgetLayerHeightOfTileMatrixByLevel in interface CacheStructpublic int getLayerInitXTilePositionByLevel(int level)
CacheStructgetLayerInitXTilePositionByLevel in interface CacheStructpublic int getLayerInitYTilePositionByLevel(int level)
CacheStructgetLayerInitYTilePositionByLevel in interface CacheStructpublic long getWorldHeightOfTileMatrixByLevel(int level)
CacheStructgetWorldHeightOfTileMatrixByLevel in interface CacheStructpublic long getWorldWidthOfTileMatrixByLevel(int level)
CacheStructgetWorldWidthOfTileMatrixByLevel in interface CacheStructpublic double getPixelSizeByLevel(int level)
CacheStructgetPixelSizeByLevel in interface CacheStructpublic java.awt.geom.Point2D[] getTileExtent(Tile tile)
CacheStructgetTileExtent in interface CacheStructpublic java.awt.geom.Point2D[] getTileExtent(int level,
int col,
int row)
CacheStructgetTileExtent in interface CacheStructpublic java.util.List<Tile> getTileList(java.awt.geom.Rectangle2D r)
CacheStructgetTileList in interface CacheStructpublic java.util.List<Tile> getTileList(java.awt.geom.Point2D ul, java.awt.geom.Point2D lr, double mtsPixelXRequest)
CacheStructgetTileList in interface CacheStructpublic boolean compare(CacheStruct struct)
CacheStructcompare in interface CacheStructpublic java.lang.String getEPSG()
CacheStructgetEPSG in interface CacheStructpublic java.lang.String getFileSize()
CacheStructgetFileSize in interface CacheStructpublic double clipDecimals(double num,
int n)
public Tile getTileStructure(int level, int tileCol, int tileRow, java.awt.geom.Point2D ul, java.awt.geom.Point2D lr) throws TileBuildException
CacheStructgetTileStructure in interface CacheStructTileBuildException