|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapTileCoordinateTransform
The TileCoordinateTransform is an object that knows how to translate lat/lon coordinates to UV tile coordinates for map tiles. Its an interface because there seem to be two accepted ways to divide up frames over the Earth. The Tile Map Service (TMS) tile system divide the Earth with the origin at the bottom left, OpenStreetMap has the origin at the top left.
Field Summary | |
---|---|
static int |
TILE_SIZE
|
static java.awt.geom.Point2D |
UVLR
|
static java.awt.geom.Point2D |
UVUL
|
Method Summary | |
---|---|
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()
|
GeoCoordTransformation |
getTransform(int zoomLevel)
The coordinate transformation object used for lat/lon uv conversions. |
int |
getZoomLevelForProj(Projection proj)
Given a projection, figure out the appropriate zoom level for it. |
int |
getZoomLevelForProj(Projection proj,
int zoomLevelTileSize)
Given a projection, figure out the appropriate zoom level for it. |
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)
|
Field Detail |
---|
static final int TILE_SIZE
static final java.awt.geom.Point2D UVUL
static final java.awt.geom.Point2D UVLR
Method Detail |
---|
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
- level
float getScaleForZoomAndProjection(Projection proj, int zoom)
proj
- the projection to use for scale calculations.zoom
- the discrete zoom level.
int getZoomLevelForProj(Projection proj)
proj
-
int getZoomLevelForProj(Projection proj, int zoomLevelTileSize)
proj
- zoomLevelTileSize
- the pixel edge size of a tile before the zoom
level changes.
float[] getScalesForZoomLevels(Projection proj, int highZoomLevel)
proj
- highZoomLevel
-
int getTileSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |