public class GoogleMapsCacheStruct extends Object implements CacheStruct
FLAT, GEOGRAFIC
Constructor and Description |
---|
GoogleMapsCacheStruct(int levels,
int tilePxWidth,
int tilePxHeight,
String layerName,
String baseDir,
String fileSuffix,
long size)
Creates a Google Maps cache struct
|
Modifier and Type | Method and Description |
---|---|
double |
clipDecimals(double num,
int n)
Clips a given double to n decimals
|
boolean |
compare(CacheStruct struct)
Compares two structures and returns true if they are equals
|
String |
getEPSG()
Gets the EPSG code
|
String |
getFileSize()
If the source is a file gets the size or 0 if is not a file
|
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
|
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
|
String |
getServerURL()
Gets the server URL
|
Point2D[] |
getTileExtent(int level,
int col,
int row)
Get the extent of an matrix element in a specific level
|
Point2D[] |
getTileExtent(Tile tile)
Gets the extent of a tile
|
List<Tile> |
getTileList(Point2D ul,
Point2D lr,
double mtsPixelXRequest)
Gets the list of tiles inside of selected area
|
List<Tile> |
getTileList(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,
Point2D ul,
Point2D lr)
Builds a tile structure with all parameters that this kind of service needs.
|
Extent |
getWorldExtent()
Return extent of Google Maps world
|
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 Extent getWorldExtent()
public int getNumberOfLevels()
CacheStruct
getNumberOfLevels
in interface CacheStruct
public String getLayerName()
CacheStruct
getLayerName
in interface CacheStruct
public String getServerURL()
CacheStruct
getServerURL
in interface CacheStruct
public String getFileSuffix()
CacheStruct
getFileSuffix
in interface CacheStruct
public int[] getTileSizeByLevel(int level)
CacheStruct
getTileSizeByLevel
in interface CacheStruct
public double[] getTileSizeInRealCoordsByLevel(int level)
CacheStruct
getTileSizeInRealCoordsByLevel
in interface CacheStruct
public int getLayerWidthOfTileMatrixByLevel(int level)
CacheStruct
getLayerWidthOfTileMatrixByLevel
in interface CacheStruct
public int getLayerHeightOfTileMatrixByLevel(int level)
CacheStruct
getLayerHeightOfTileMatrixByLevel
in interface CacheStruct
public int getLayerInitXTilePositionByLevel(int level)
CacheStruct
getLayerInitXTilePositionByLevel
in interface CacheStruct
public int getLayerInitYTilePositionByLevel(int level)
CacheStruct
getLayerInitYTilePositionByLevel
in interface CacheStruct
public long getWorldHeightOfTileMatrixByLevel(int level)
CacheStruct
getWorldHeightOfTileMatrixByLevel
in interface CacheStruct
public long getWorldWidthOfTileMatrixByLevel(int level)
CacheStruct
getWorldWidthOfTileMatrixByLevel
in interface CacheStruct
public double getPixelSizeByLevel(int level)
CacheStruct
getPixelSizeByLevel
in interface CacheStruct
public Point2D[] getTileExtent(Tile tile)
CacheStruct
getTileExtent
in interface CacheStruct
public Point2D[] getTileExtent(int level, int col, int row)
CacheStruct
getTileExtent
in interface CacheStruct
public List<Tile> getTileList(Rectangle2D r)
CacheStruct
getTileList
in interface CacheStruct
public List<Tile> getTileList(Point2D ul, Point2D lr, double mtsPixelXRequest)
CacheStruct
getTileList
in interface CacheStruct
public boolean compare(CacheStruct struct)
CacheStruct
compare
in interface CacheStruct
public String getEPSG()
CacheStruct
getEPSG
in interface CacheStruct
public String getFileSize()
CacheStruct
getFileSize
in interface CacheStruct
public double clipDecimals(double num, int n)
num
- n
- public Tile getTileStructure(int level, int tileCol, int tileRow, Point2D ul, Point2D lr) throws TileBuildException
CacheStruct
getTileStructure
in interface CacheStruct
TileBuildException