Class WMSEndpointTileSource

  • All Implemented Interfaces:
    org.openstreetmap.gui.jmapviewer.interfaces.Attributed, org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource, org.openstreetmap.gui.jmapviewer.interfaces.TileSource

    public class WMSEndpointTileSource
    extends AbstractWMSTileSource
    implements org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
    Class representing ImageryType.WMS_ENDPOINT tile source. It differs from standard WMS tile source that this tile source fetches GetCapabilities from server and uses most of the parameters from there
    Since:
    13733
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> headers  
      private java.util.List<DefaultLayer> layers  
      private static java.util.regex.Pattern PATTERN_PARAM  
      private java.lang.String urlPattern  
      private WMSImagery wmsi  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDefaultTileSize()  
      java.util.Map<java.lang.String,​java.lang.String> getHeaders()  
      java.util.List<java.lang.String> getServerProjections()
      Returns list of EPSG codes that current layer selection supports.
      java.lang.String 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, getTileId, 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, getTileId, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isInside, isModTileFeatures, isNoTileAtZoom, latLonToTileXY, latLonToTileXY, latLonToXY, latLonToXY, projectedToTileXY, tileXYToLatLon, tileXYToLatLon, tileXYToLatLon, tileXYtoProjected, xyToLatLon, xyToLatLon
    • Constructor Detail

      • WMSEndpointTileSource

        public WMSEndpointTileSource​(ImageryInfo info,
                                     Projection tileProjection)
        Create WMSEndpointTileSource tile source
        Parameters:
        info - WMS_ENDPOINT ImageryInfo
        tileProjection - server projection that should be used by this tile source
    • Method Detail

      • 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 java.lang.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
      • getServerProjections

        public java.util.List<java.lang.String> getServerProjections()
        Returns list of EPSG codes that current layer selection supports.
        Returns:
        list of EPSG codes that current layer selection supports (this may differ from layer to layer)
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Specified by:
        getHeaders in interface org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource