public class TMSMapTileCoordinateTransform extends AbstractMapTileCoordinateTransform
TILE_SIZE, UVLR, UVUL
Constructor and Description |
---|
TMSMapTileCoordinateTransform() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 ret) |
static void |
main(java.lang.String[] args) |
LatLonPoint |
tileUVToLatLon(java.awt.geom.Point2D tileUV,
int zoom,
LatLonPoint ret) |
getScaleForZoom, getScaleForZoomAndProjection, getScalesForZoomLevels, getTileSize, latLonToTileUV, tileUVToLatLon
public java.awt.geom.Point2D latLonToTileUV(java.awt.geom.Point2D latlon, int zoom, java.awt.geom.Point2D ret)
latlon
- a Point2D whose x component is the longitude and y
component is the latitudezoom
- Tile Map Service (TMS) style zoom level (0-19 usually)ret
- LatLonPoint to fill and return, to avoid allocating return
object.public LatLonPoint tileUVToLatLon(java.awt.geom.Point2D tileUV, int zoom, LatLonPoint ret)
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)ret
- LatLonPoint to fill and return, to avoid allocating return
object.public 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.public static void main(java.lang.String[] args)
public boolean isYDirectionUp()
public GeoCoordTransformation getTransform(int zoomLevel)
MapTileCoordinateTransform
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details