public class ScanexTileSource extends TMSTileSource
| Modifier and Type | Class and Description |
|---|---|
private static class |
ScanexTileSource.ScanexLayer |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
API_KEY |
private double |
cachedLat
cached latitude used in
tileYToLat(double, int) |
private static int |
DEFAULT_MAXZOOM |
private static java.lang.String |
DEFAULT_URL |
private static double |
E |
private static double |
EQUATOR |
private ScanexTileSource.ScanexLayer |
layer
IRS by default
|
private static double |
RADIUS_E |
private TemplatedTMSTileSource |
TemplateSource |
maxZoom, minZoom, osmMercatorbaseUrl, id, modTileFeatures, name, tileSizeattributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL| Constructor and Description |
|---|
ScanexTileSource(TileSourceInfo info)
Constructs a new
ScanexTileSource. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExtension() |
java.lang.String |
getTilePath(int zoom,
int tilex,
int tiley) |
java.lang.String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
TileXY |
latLonToTileXY(double lat,
double lon,
int zoom)
Transforms longitude and latitude to tile indices.
|
java.awt.Point |
latLonToXY(double lat,
double lon,
int zoom)
Transforms longitude and latitude to pixel space (as if all tiles at specified zoom level where joined).
|
private double |
latToTileY(double lat,
int zoom) |
private static double |
nextTerm(double lat,
double y,
int zoom) |
ICoordinate |
tileXYToLatLon(int x,
int y,
int zoom)
Transforms tile indices to longitude and latitude.
|
private double |
tileYToLat(double y,
int zoom) |
ICoordinate |
xyToLatLon(int x,
int y,
int zoom)
Transforms a point in pixel space to longitude/latitude (WGS84).
|
getCoveringTileRange, getDistance, getMaxZoom, getMinZoom, getServerCRS, isInside, projectedToTileXY, tileXYtoProjectedgetBaseUrl, getDefaultTileSize, getId, getMetadata, getName, getTileId, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isModTileFeatures, isNoTileAtZoom, latLonToTileXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, toString, xyToLatLongetAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURLprivate static final java.lang.String DEFAULT_URL
private static final int DEFAULT_MAXZOOM
private static final java.lang.String API_KEY
private ScanexTileSource.ScanexLayer layer
private TemplatedTMSTileSource TemplateSource
private double cachedLat
tileYToLat(double, int)private static final double RADIUS_E
private static final double EQUATOR
private static final double E
public ScanexTileSource(TileSourceInfo info)
ScanexTileSource.info - tile source infopublic java.lang.String getExtension()
getExtension in class AbstractTMSTileSourcepublic java.lang.String getTileUrl(int zoom, int tilex, int tiley)
TileSourcegetTileUrl in interface TileSourcegetTileUrl in class AbstractTMSTileSourcezoom - zoom leveltilex - X coordinatetiley - Y coordinatepublic java.lang.String getTilePath(int zoom, int tilex, int tiley)
getTilePath in class AbstractTMSTileSourcezoom - level of the tiletilex - tile number in x axistiley - tile number in y axispublic java.awt.Point latLonToXY(double lat, double lon, int zoom)
TileSourcelatLonToXY in interface TileSourcelatLonToXY in class TMSTileSourcelat - latitudelon - longitudezoom - zoom levelpublic ICoordinate xyToLatLon(int x, int y, int zoom)
TileSourcexyToLatLon in interface TileSourcexyToLatLon in class TMSTileSourcex - X coordinatey - Y coordinatezoom - zoom levelpublic TileXY latLonToTileXY(double lat, double lon, int zoom)
TileSourcelatLonToTileXY in interface TileSourcelatLonToTileXY in class TMSTileSourcelat - latitudelon - longitudezoom - zoom levelpublic ICoordinate tileXYToLatLon(int x, int y, int zoom)
TileSourcetileXYToLatLon in interface TileSourcetileXYToLatLon in class TMSTileSourcex - x tile indexy - y tile indexzoom - zoom levelprivate double latToTileY(double lat, int zoom)
private double tileYToLat(double y, int zoom)
private static double nextTerm(double lat, double y, int zoom)