public class TileBoundingBoxUtils extends Object
| Constructor and Description |
|---|
TileBoundingBoxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BoundingBox |
getBoundingBox(int x,
int y,
int zoom)
Get the tile bounding box from the Google Maps API tile coordinates and
zoom level
|
static double |
getLatitudeFromPixel(long height,
BoundingBox boundingBox,
float pixel)
Get the latitude from the pixel location, bounding box, and image height
|
static double |
getLongitudeFromPixel(long width,
BoundingBox boundingBox,
float pixel)
Get the longitude from the pixel location, bounding box, and image width
|
static double |
getPixelXSize(BoundingBox webMercatorBoundingBox,
long matrixWidth,
int tileWidth)
Get the pixel x size for the bounding box with matrix width and tile
width
|
static double |
getPixelYSize(BoundingBox webMercatorBoundingBox,
long matrixHeight,
int tileHeight)
Get the pixel y size for the bounding box with matrix height and tile
height
|
static BoundingBox |
getProjectedBoundingBox(Long projectionEpsg,
int x,
int y,
int zoom)
Get the Projected tile bounding box from the Google Maps API tile
coordinates and zoom level
|
static BoundingBox |
getProjectedBoundingBox(Long projectionEpsg,
TileGrid tileGrid,
int zoom)
Get the Projected tile bounding box from the Google Maps API tile
tileGrid and zoom level
|
static BoundingBox |
getProjectedBoundingBox(Projection projection,
long x,
long y,
int zoom)
Get the Projected tile bounding box from the Google Maps API tile
coordinates and zoom level
|
static BoundingBox |
getProjectedBoundingBox(Projection projection,
TileGrid tileGrid,
int zoom)
Get the Projected tile bounding box from the Google Maps API tile grid
and zoom level
|
static long |
getTileColumn(BoundingBox webMercatorTotalBox,
long matrixWidth,
double longitude)
Get the tile column of the longitude in degrees
|
static TileGrid |
getTileGrid(BoundingBox webMercatorBoundingBox,
int zoom)
Get the tile grid that includes the entire tile bounding box
|
static TileGrid |
getTileGrid(BoundingBox webMercatorTotalBox,
long matrixWidth,
long matrixHeight,
BoundingBox webMercatorBoundingBox)
Get the tile grid
|
static TileGrid |
getTileGrid(mil.nga.wkb.geom.Point point,
int zoom,
Projection projection)
Get the tile grid for the location specified as the projection
|
static TileGrid |
getTileGridFromWGS84(mil.nga.wkb.geom.Point point,
int zoom)
Get the tile grid for the location specified as WGS84
|
static long |
getTileRow(BoundingBox webMercatorTotalBox,
long matrixHeight,
double latitude)
Get the tile row of the latitude in degrees
|
static BoundingBox |
getWebMercatorBoundingBox(BoundingBox webMercatorTotalBox,
long tileMatrixWidth,
long tileMatrixHeight,
long tileColumn,
long tileRow)
Get the web mercator bounding box of the Tile Row from the Tile Matrix
zoom level
|
static BoundingBox |
getWebMercatorBoundingBox(BoundingBox webMercatorTotalBox,
TileMatrix tileMatrix,
long tileColumn,
long tileRow)
Get the web mercator bounding box of the Tile Row from the Tile Matrix
zoom level
|
static BoundingBox |
getWebMercatorBoundingBox(long x,
long y,
int zoom)
Get the Web Mercator tile bounding box from the Google Maps API tile
coordinates and zoom level
|
static BoundingBox |
getWebMercatorBoundingBox(TileGrid tileGrid,
int zoom)
Get the Web Mercator tile bounding box from the Google Maps API tile grid
and zoom level
|
static float |
getXPixel(long width,
BoundingBox boundingBox,
double longitude)
Get the X pixel for where the longitude fits into the bounding box
|
static int |
getYAsOppositeTileFormat(int zoom,
int y)
Get the standard y tile location as TMS or a TMS y location as standard
|
static float |
getYPixel(long height,
BoundingBox boundingBox,
double latitude)
Get the Y pixel for where the latitude fits into the bounding box
|
static int |
getZoomLevel(BoundingBox webMercatorBoundingBox)
Get the zoom level of where the web mercator bounding box fits into the
complete world
|
static BoundingBox |
overlap(BoundingBox boundingBox,
BoundingBox boundingBox2)
Get the overlapping bounding box between the two bounding boxes
|
static double |
tileHeightDegrees(int tilesPerSide)
Get the tile height in degrees
|
static double |
tileSize(int tilesPerSide)
Get the tile size in meters
|
static int |
tilesPerSide(int zoom)
Get the tiles per side, width and height, at the zoom level
|
static double |
tileWidthDegrees(int tilesPerSide)
Get the tile width in degrees
|
static BoundingBox |
toWebMercator(BoundingBox boundingBox)
Convert the bounding box coordinates to a new web mercator bounding box
|
static BoundingBox |
union(BoundingBox boundingBox,
BoundingBox boundingBox2)
Get the union bounding box combining the two bounding boxes
|
static int |
zoomFromTilesPerSide(int tilesPerSide)
Get the zoom level from the tiles per side
|
public static BoundingBox overlap(BoundingBox boundingBox, BoundingBox boundingBox2)
boundingBox - boundingBox2 - public static BoundingBox union(BoundingBox boundingBox, BoundingBox boundingBox2)
boundingBox - boundingBox2 - public static float getXPixel(long width,
BoundingBox boundingBox,
double longitude)
width - boundingBox - longitude - public static double getLongitudeFromPixel(long width,
BoundingBox boundingBox,
float pixel)
width - boundingBox - pixel - public static float getYPixel(long height,
BoundingBox boundingBox,
double latitude)
height - boundingBox - tileRowBoundingBox - public static double getLatitudeFromPixel(long height,
BoundingBox boundingBox,
float pixel)
height - boundingBox - pixel - public static BoundingBox getBoundingBox(int x, int y, int zoom)
x - y - zoom - public static BoundingBox getWebMercatorBoundingBox(long x, long y, int zoom)
x - y - zoom - public static BoundingBox getWebMercatorBoundingBox(TileGrid tileGrid, int zoom)
x - y - zoom - public static BoundingBox getProjectedBoundingBox(Long projectionEpsg, int x, int y, int zoom)
projectionEpsg - x - y - zoom - public static BoundingBox getProjectedBoundingBox(Projection projection, long x, long y, int zoom)
projection - x - y - zoom - public static BoundingBox getProjectedBoundingBox(Long projectionEpsg, TileGrid tileGrid, int zoom)
projectionEpsg - tileGrid - zoom - public static BoundingBox getProjectedBoundingBox(Projection projection, TileGrid tileGrid, int zoom)
projection - tileGrid - zoom - public static TileGrid getTileGridFromWGS84(mil.nga.wkb.geom.Point point, int zoom)
point - zoom - public static TileGrid getTileGrid(mil.nga.wkb.geom.Point point, int zoom, Projection projection)
point - zoom - projection - public static TileGrid getTileGrid(BoundingBox webMercatorBoundingBox, int zoom)
webMercatorBoundingBox - zoom - public static BoundingBox toWebMercator(BoundingBox boundingBox)
boundingBox - public static double tileSize(int tilesPerSide)
tilesPerSide - public static double tileWidthDegrees(int tilesPerSide)
tilesPerSide - public static double tileHeightDegrees(int tilesPerSide)
tilesPerSide - public static int tilesPerSide(int zoom)
zoom - public static int getYAsOppositeTileFormat(int zoom,
int y)
zoom - y - public static int zoomFromTilesPerSide(int tilesPerSide)
tilesPerSide - public static TileGrid getTileGrid(BoundingBox webMercatorTotalBox, long matrixWidth, long matrixHeight, BoundingBox webMercatorBoundingBox)
webMercatorTotalBox - matrixWidth - matrixHeight - webMercatorBoundingBox - public static long getTileColumn(BoundingBox webMercatorTotalBox, long matrixWidth, double longitude)
webMercatorTotalBox - matrixWidth - longitude - in metersTileMatrix.getMatrixWidth() if afterpublic static long getTileRow(BoundingBox webMercatorTotalBox, long matrixHeight, double latitude)
webMercatorTotalBox - matrixHeight - latitude - in metersTileMatrix.getMatrixHeight() if afterpublic static BoundingBox getWebMercatorBoundingBox(BoundingBox webMercatorTotalBox, TileMatrix tileMatrix, long tileColumn, long tileRow)
webMercatorTotalBox - tileMatrix - tileColumn - tileRow - public static BoundingBox getWebMercatorBoundingBox(BoundingBox webMercatorTotalBox, long tileMatrixWidth, long tileMatrixHeight, long tileColumn, long tileRow)
webMercatorTotalBox - matrixWidth - matrixHeight - tileColumn - tileRow - public static int getZoomLevel(BoundingBox webMercatorBoundingBox)
webMercatorBoundingBox - public static double getPixelXSize(BoundingBox webMercatorBoundingBox, long matrixWidth, int tileWidth)
webMercatorBoundingBox - matrixWidth - tileWidth - public static double getPixelYSize(BoundingBox webMercatorBoundingBox, long matrixHeight, int tileHeight)
webMercatorBoundingBox - matrixHeight - tileHeight - Copyright © 2015 National Geospatial-Intelligence Agency. All rights reserved.