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 final boolean
     
    private final String
     
    private final Map<String,String>
     
    private static final NumberFormat
     
    private final Set<String>
     

    Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource

    maxZoom, minZoom, osmMercator

    Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource

    baseUrl, id, modTileFeatures, name, tileSize

    Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource

    attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a tile source based on imagery info
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Checks if url is acceptable by this Tile Source
    int
     
     
    getTileId(int zoom, int tilex, int tiley)
     
    getTileUrl(int zoom, int tilex, int tiley)
     

    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 Details

  • Constructor Details

    • TemplatedWMSTileSource

      public TemplatedWMSTileSource(ImageryInfo info, Projection tileProjection)
      Creates a tile source based on imagery info
      Parameters:
      info - imagery info
      tileProjection - the tile projection
  • Method Details

    • getDefaultTileSize

      public int getDefaultTileSize()
      Specified by:
      getDefaultTileSize in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
      Overrides:
      getDefaultTileSize in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
    • getTileUrl

      public String getTileUrl(int zoom, int tilex, int tiley)
      Specified by:
      getTileUrl in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
      Overrides:
      getTileUrl in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
    • getTileId

      public String getTileId(int zoom, int tilex, int tiley)
      Specified by:
      getTileId in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
      Overrides:
      getTileId in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
    • getHeaders

      Specified by:
      getHeaders in interface org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
    • checkUrl

      public static void checkUrl(String url)
      Checks if url is acceptable by this Tile Source
      Parameters:
      url - URL to check