public interface MapTileCoordinateTransform
Modifier and Type | Field and Description |
---|---|
static int |
TILE_SIZE |
static java.awt.geom.Point2D |
UVLR |
static java.awt.geom.Point2D |
UVUL |
Modifier and Type | Method and Description |
---|---|
float |
getScaleForZoom(int zoom)
Return a scale value for the transforming projection, given a discrete zoom level.
|
float |
getScaleForZoomAndProjection(Projection proj,
int zoom)
Get the scale value for a Projection and discrete zoom level.
|
float[] |
getScalesForZoomLevels(Projection proj,
int highZoomLevel)
Creates an array of scale values for different zoom levels.
|
int[] |
getTileBoundsForProjection(java.awt.geom.Point2D upperLeft,
java.awt.geom.Point2D lowerRight,
int zoomLevel)
Given a projection, provide the upper, lower, left and right tile
coordinates that cover the projection area.
|
int |
getTileSize()
Return the pixel size for the tiles for this transform.
|
GeoCoordTransformation |
getTransform(int zoomLevel)
The coordinate transformation object used for lat/lon uv conversions.
|
boolean |
isYDirectionUp() |
java.awt.geom.Point2D |
latLonToTileUV(java.awt.geom.Point2D latlon,
int zoom) |
java.awt.geom.Point2D |
latLonToTileUV(java.awt.geom.Point2D latlon,
int zoom,
java.awt.geom.Point2D ret) |
java.awt.geom.Point2D |
tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom) |
LatLonPoint |
tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom,
LatLonPoint ret) |
static final int TILE_SIZE
static final java.awt.geom.Point2D UVUL
static final java.awt.geom.Point2D UVLR
java.awt.geom.Point2D latLonToTileUV(java.awt.geom.Point2D latlon, int zoom)
java.awt.geom.Point2D latLonToTileUV(java.awt.geom.Point2D latlon, int zoom, java.awt.geom.Point2D ret)
java.awt.geom.Point2D tileUVToLatLon(java.awt.geom.Point2D tileUV, int zoom)
tileUV
- a Point2D whose x,y coordinates represent the distance in
number of tiles (each 256x256) from the origin (where the origin is
90lat,-180lon)zoom
- Tile Map Service (TMS) style zoom level (0-19 usually)LatLonPoint tileUVToLatLon(java.awt.geom.Point2D tileUV, int zoom, LatLonPoint ret)
int[] getTileBoundsForProjection(java.awt.geom.Point2D upperLeft, java.awt.geom.Point2D lowerRight, int zoomLevel)
upperLeft
- lat/lon coordinate of upper left corner of bounding box.lowerRight
- lat/lon coordinate of lower right corner of bounding
box.zoomLevel
- zoom level of desired tiles.boolean isYDirectionUp()
GeoCoordTransformation getTransform(int zoomLevel)
float getScaleForZoom(int zoom)
zoom
- levelfloat getScaleForZoomAndProjection(Projection proj, int zoom)
proj
- the projection to use for scale calculations.zoom
- the discrete zoom level.float[] getScalesForZoomLevels(Projection proj, int highZoomLevel)
proj
- highZoomLevel
- int getTileSize()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details