|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.dataAccess.mapTile.AbstractMapTileCoordinateTransform
public abstract class AbstractMapTileCoordinateTransform
An abstraction of MapTileCoordinateTransform that combines the identical methods of OSM and TMS MapTileCoordinateTransforms.
| Field Summary |
|---|
| Fields inherited from interface com.bbn.openmap.dataAccess.mapTile.MapTileCoordinateTransform |
|---|
TILE_SIZE, UVLR, UVUL |
| Constructor Summary | |
|---|---|
AbstractMapTileCoordinateTransform()
|
|
| Method Summary | |
|---|---|
protected int |
getMaxZoomLevelForProj()
Returns the maximum zoom level for calculating the appropriate zoom level. |
protected int |
getMinZoomLevelForProj()
Returns the minimum zoom level for calculating the appropriate zoom level. |
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 |
getTileSize()
Returns the tile size of the transform. |
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. |
java.awt.geom.Point2D |
latLonToTileUV(java.awt.geom.Point2D latlon,
int zoom)
|
java.awt.geom.Point2D |
tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bbn.openmap.dataAccess.mapTile.MapTileCoordinateTransform |
|---|
getTileBoundsForProjection, getTransform, isYDirectionUp, latLonToTileUV, tileUVToLatLon |
| Constructor Detail |
|---|
public AbstractMapTileCoordinateTransform()
| Method Detail |
|---|
public java.awt.geom.Point2D latLonToTileUV(java.awt.geom.Point2D latlon,
int zoom)
latLonToTileUV in interface MapTileCoordinateTransform
public java.awt.geom.Point2D tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom)
tileUVToLatLon in interface MapTileCoordinateTransformtileUV - 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)
public float getScaleForZoom(int zoom)
getScaleForZoom in interface MapTileCoordinateTransformzoom - level
public float getScaleForZoomAndProjection(Projection proj,
int zoom)
getScaleForZoomAndProjection in interface MapTileCoordinateTransformproj - the projection to use for scale calculations.zoom - the discrete zoom level.
public int getZoomLevelForProj(Projection proj)
getZoomLevelForProj in interface MapTileCoordinateTransformproj -
public int getZoomLevelForProj(Projection proj,
int zoomLevelTileSize)
getZoomLevelForProj in interface MapTileCoordinateTransformproj - zoomLevelTileSize - used for determining zoom levels, a kind of
buffer around true zoom levels since the OpenMap layers scale
images.
protected int getMinZoomLevelForProj()
protected int getMaxZoomLevelForProj()
public float[] getScalesForZoomLevels(Projection proj,
int highZoomLevel)
getScalesForZoomLevels in interface MapTileCoordinateTransformproj - highZoomLevel -
public int getTileSize()
getTileSize in interface MapTileCoordinateTransform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||