Class TemplatedWMSTileSource
- java.lang.Object
-
- org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
-
- org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
-
- org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource
-
- org.openstreetmap.josm.data.imagery.AbstractWMSTileSource
-
- org.openstreetmap.josm.data.imagery.TemplatedWMSTileSource
-
- All Implemented Interfaces:
org.openstreetmap.gui.jmapviewer.interfaces.Attributed
,org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
,org.openstreetmap.gui.jmapviewer.interfaces.TileSource
public class TemplatedWMSTileSource extends AbstractWMSTileSource implements org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
Tile Source handling WMS providers- Since:
- 8526
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
belowWMS130
private java.lang.String
date
private java.util.Map<java.lang.String,java.lang.String>
headers
private static java.text.NumberFormat
LATLON_FORMAT
private java.util.Set<java.lang.String>
serverProjections
-
Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource
maxZoom, minZoom, osmMercator
-
-
Constructor Summary
Constructors Constructor Description TemplatedWMSTileSource(ImageryInfo info, Projection tileProjection)
Creates a tile source based on imagery info
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkUrl(java.lang.String url)
Checks if url is acceptable by this Tile Sourceint
getDefaultTileSize()
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
java.lang.String
getTileId(int zoom, int tilex, int tiley)
java.lang.String
getTileUrl(int zoom, int tilex, int tiley)
-
Methods inherited from class org.openstreetmap.josm.data.imagery.AbstractWMSTileSource
getBbox, getServerCRS, getTileEastNorth, getTileProjection, getTileXMax, getTileXMin, getTileYMax, getTileYMin, initProjection, initProjection, latLonToTileXY, latLonToXY, projectedToTileXY, setTileProjection, tileXYToLatLon, tileXYtoProjected, xyToLatLon
-
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource
getCoveringTileRange, getDistance, getMaxZoom, getMinZoom, isInside
-
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
getBaseUrl, getExtension, getId, getMetadata, getName, getTilePath, getTileSize, isModTileFeatures, isNoTileAtZoom, toString
-
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.Attributed
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution
-
Methods inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
getCoveringTileRange, getDistance, getId, getMaxZoom, getMetadata, getMinZoom, getName, getServerCRS, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isInside, isModTileFeatures, isNoTileAtZoom, latLonToTileXY, latLonToTileXY, latLonToXY, latLonToXY, projectedToTileXY, tileXYToLatLon, tileXYToLatLon, tileXYToLatLon, tileXYtoProjected, xyToLatLon, xyToLatLon
-
-
-
-
Field Detail
-
LATLON_FORMAT
private static final java.text.NumberFormat LATLON_FORMAT
-
serverProjections
private final java.util.Set<java.lang.String> serverProjections
-
headers
private final java.util.Map<java.lang.String,java.lang.String> headers
-
date
private final java.lang.String date
-
belowWMS130
private final boolean belowWMS130
-
-
Constructor Detail
-
TemplatedWMSTileSource
public TemplatedWMSTileSource(ImageryInfo info, Projection tileProjection)
Creates a tile source based on imagery info- Parameters:
info
- imagery infotileProjection
- the tile projection
-
-
Method Detail
-
getDefaultTileSize
public int getDefaultTileSize()
- Specified by:
getDefaultTileSize
in interfaceorg.openstreetmap.gui.jmapviewer.interfaces.TileSource
- Overrides:
getDefaultTileSize
in classorg.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
-
getTileUrl
public java.lang.String getTileUrl(int zoom, int tilex, int tiley)
- Specified by:
getTileUrl
in interfaceorg.openstreetmap.gui.jmapviewer.interfaces.TileSource
- Overrides:
getTileUrl
in classorg.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
-
getTileId
public java.lang.String getTileId(int zoom, int tilex, int tiley)
- Specified by:
getTileId
in interfaceorg.openstreetmap.gui.jmapviewer.interfaces.TileSource
- Overrides:
getTileId
in classorg.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
- Specified by:
getHeaders
in interfaceorg.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
-
checkUrl
public static void checkUrl(java.lang.String url)
Checks if url is acceptable by this Tile Source- Parameters:
url
- URL to check
-
-