public abstract class AbstractWMSTileSource extends TMSTileSource
Modifier and Type | Field and Description |
---|---|
private EastNorth |
anchorPosition |
private double[] |
degreesPerTile |
private static float |
SCALE_DENOMINATOR_ZOOM_LEVEL_1 |
private int[] |
tileXMax |
private int[] |
tileXMin |
private int[] |
tileYMax |
private int[] |
tileYMin |
maxZoom, minZoom, osmMercator
baseUrl, id, name, tileSize
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
Constructor and Description |
---|
AbstractWMSTileSource(TileSourceInfo info)
Constructs a new
AbstractWMSTileSource . |
Modifier and Type | Method and Description |
---|---|
private TileXY |
eastNorthToTileXY(EastNorth enPoint,
int zoom) |
private double |
getDegreesPerTile(int zoom) |
protected EastNorth |
getTileEastNorth(int x,
int y,
int z) |
int |
getTileXMax(int zoom) |
int |
getTileXMin(int zoom) |
int |
getTileYMax(int zoom) |
int |
getTileYMin(int zoom) |
private void |
initAnchorPosition(Projection proj) |
void |
initProjection()
Initializes class with current projection in JOSM.
|
void |
initProjection(Projection proj)
Initializes class with projection in JOSM.
|
TileXY |
latLonToTileXY(double lat,
double lon,
int zoom) |
TileXY |
latLonToTileXY(ICoordinate point,
int zoom) |
java.awt.Point |
latLonToXY(double lat,
double lon,
int zoom) |
java.awt.Point |
latLonToXY(ICoordinate point,
int zoom) |
ICoordinate |
tileXYToLatLon(int x,
int y,
int zoom) |
ICoordinate |
tileXYToLatLon(Tile tile) |
ICoordinate |
tileXYToLatLon(TileXY xy,
int zoom) |
ICoordinate |
xyToLatLon(int x,
int y,
int zoom) |
ICoordinate |
xyToLatLon(java.awt.Point point,
int zoom) |
getDistance, getMaxZoom, getMinZoom
getBaseUrl, getDefaultTileSize, getExtension, getId, getMetadata, getName, getTileId, getTilePath, getTileSize, getTileUrl, isNoTileAtZoom, toString
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
private EastNorth anchorPosition
private int[] tileXMin
private int[] tileYMin
private int[] tileXMax
private int[] tileYMax
private double[] degreesPerTile
private static final float SCALE_DENOMINATOR_ZOOM_LEVEL_1
public AbstractWMSTileSource(TileSourceInfo info)
AbstractWMSTileSource
.info
- tile source infoprivate void initAnchorPosition(Projection proj)
public void initProjection()
public void initProjection(Projection proj)
proj
- new projection that shall be used for computationspublic ICoordinate tileXYToLatLon(Tile tile)
tileXYToLatLon
in interface TileSource
tileXYToLatLon
in class AbstractTMSTileSource
tile
- Tilepublic ICoordinate tileXYToLatLon(TileXY xy, int zoom)
tileXYToLatLon
in interface TileSource
tileXYToLatLon
in class AbstractTMSTileSource
xy
- X/Y coordinateszoom
- zoom levelpublic ICoordinate tileXYToLatLon(int x, int y, int zoom)
tileXYToLatLon
in interface TileSource
tileXYToLatLon
in class TMSTileSource
x
- X coordinatey
- Y coordinatezoom
- zoom levelprivate TileXY eastNorthToTileXY(EastNorth enPoint, int zoom)
public TileXY latLonToTileXY(double lat, double lon, int zoom)
latLonToTileXY
in interface TileSource
latLonToTileXY
in class TMSTileSource
lat
- latitudelon
- longitudezoom
- zoom levelpublic TileXY latLonToTileXY(ICoordinate point, int zoom)
latLonToTileXY
in interface TileSource
latLonToTileXY
in class AbstractTMSTileSource
point
- pointzoom
- zoom levelpublic int getTileXMax(int zoom)
getTileXMax
in interface TileSource
getTileXMax
in class AbstractTMSTileSource
zoom
- zoom levelpublic int getTileXMin(int zoom)
getTileXMin
in interface TileSource
getTileXMin
in class AbstractTMSTileSource
zoom
- zoom levelpublic int getTileYMax(int zoom)
getTileYMax
in interface TileSource
getTileYMax
in class AbstractTMSTileSource
zoom
- zoom levelpublic int getTileYMin(int zoom)
getTileYMin
in interface TileSource
getTileYMin
in class AbstractTMSTileSource
zoom
- zoom levelpublic java.awt.Point latLonToXY(double lat, double lon, int zoom)
latLonToXY
in interface TileSource
latLonToXY
in class TMSTileSource
lat
- latitudelon
- longitudezoom
- zoom levelpublic java.awt.Point latLonToXY(ICoordinate point, int zoom)
latLonToXY
in interface TileSource
latLonToXY
in class AbstractTMSTileSource
point
- pointzoom
- zoom levelpublic ICoordinate xyToLatLon(java.awt.Point point, int zoom)
xyToLatLon
in interface TileSource
xyToLatLon
in class AbstractTMSTileSource
point
- pointzoom
- zoom levelpublic ICoordinate xyToLatLon(int x, int y, int zoom)
xyToLatLon
in interface TileSource
xyToLatLon
in class TMSTileSource
x
- X coordinatey
- Y coordinatezoom
- zoom levelprotected EastNorth getTileEastNorth(int x, int y, int z)
private double getDegreesPerTile(int zoom)