public abstract class AbstractMapTileCoordinateTransform extends java.lang.Object implements MapTileCoordinateTransform
TILE_SIZE, UVLR, UVUL
Constructor and Description |
---|
AbstractMapTileCoordinateTransform() |
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 |
getTileSize()
Returns the tile size of the transform.
|
java.awt.geom.Point2D |
latLonToTileUV(java.awt.geom.Point2D latlon,
int zoom) |
java.awt.geom.Point2D |
tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTileBoundsForProjection, getTransform, isYDirectionUp, latLonToTileUV, tileUVToLatLon
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 MapTileCoordinateTransform
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)public float getScaleForZoom(int zoom)
getScaleForZoom
in interface MapTileCoordinateTransform
zoom
- levelpublic float getScaleForZoomAndProjection(Projection proj, int zoom)
getScaleForZoomAndProjection
in interface MapTileCoordinateTransform
proj
- the projection to use for scale calculations.zoom
- the discrete zoom level.public float[] getScalesForZoomLevels(Projection proj, int highZoomLevel)
getScalesForZoomLevels
in interface MapTileCoordinateTransform
proj
- highZoomLevel
- public int getTileSize()
getTileSize
in interface MapTileCoordinateTransform
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details