Package org.mapfish.print.map.tiled.wmts
Class WMTSLayer
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGeotoolsLayer
-
- org.mapfish.print.map.tiled.AbstractTiledLayer
-
- org.mapfish.print.map.tiled.wmts.WMTSLayer
-
- All Implemented Interfaces:
MapLayer
public class WMTSLayer extends AbstractTiledLayer
Class for loading data from a WMTS.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapfish.print.attribute.map.MapLayer
MapLayer.RenderType
-
-
Field Summary
-
Fields inherited from class org.mapfish.print.map.tiled.AbstractTiledLayer
imageBufferScaling
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WMTSLayer(java.util.concurrent.ForkJoinPool forkJoinPool, StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, WMTSLayerParam param, com.codahale.metrics.MetricRegistry registry, Configuration configuration)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.net.URI
createRestURI(java.lang.String matrixId, int row, int col, WMTSLayerParam layerParam)
Prepare the baseURL to make a request.protected TileCacheInformation
createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi)
Create the tile cache information object for the given parameters.MapLayer.RenderType
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.-
Methods inherited from class org.mapfish.print.map.tiled.AbstractTiledLayer
getImageBufferScaling, getLayers, prefetchResources, prepareRender
-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGeotoolsLayer
getFailOnError, getLayerTransformer, getName, getOpacity, render, supportsNativeRotation, tryAddLayer
-
-
-
-
Constructor Detail
-
WMTSLayer
protected WMTSLayer(@Nullable java.util.concurrent.ForkJoinPool forkJoinPool, @Nullable StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, @Nonnull WMTSLayerParam param, @Nullable com.codahale.metrics.MetricRegistry registry, @Nonnull Configuration configuration)
Constructor.- Parameters:
forkJoinPool
- the thread pool for doing the rendering.styleSupplier
- strategy for loading the style for this layerparam
- the information needed to create WMTS requests.registry
- the metrics registry.configuration
- the configuration.
-
-
Method Detail
-
createRestURI
public static java.net.URI createRestURI(java.lang.String matrixId, int row, int col, WMTSLayerParam layerParam) throws java.net.URISyntaxException
Prepare the baseURL to make a request.- Parameters:
matrixId
- matrixIdrow
- rowcol
- coldlayerParam
- layerParam- Throws:
java.net.URISyntaxException
-
createTileInformation
protected final TileCacheInformation createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi)
Description copied from class:AbstractTiledLayer
Create the tile cache information object for the given parameters.- Specified by:
createTileInformation
in classAbstractTiledLayer
- Parameters:
bounds
- the map boundspaintArea
- the area to paintdpi
- the DPI to render at
-
getRenderType
public final MapLayer.RenderType getRenderType()
Description copied from interface:MapLayer
Specify whether layer should be rendered as PNG, JPEG or SVG.- Returns:
- render type
-
-