Package org.mapfish.print.map.tiled.wms
Class TiledWmsLayer
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGeotoolsLayer
-
- org.mapfish.print.map.tiled.AbstractTiledLayer
-
- org.mapfish.print.map.tiled.wms.TiledWmsLayer
-
- All Implemented Interfaces:
MapLayer
public final class TiledWmsLayer extends AbstractTiledLayer
Strategy object for rendering WMS based layers .
-
-
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 Constructor Description TiledWmsLayer(java.util.concurrent.ForkJoinPool forkJoinPool, StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, TiledWmsLayerParam param, com.codahale.metrics.MetricRegistry registry, Configuration configuration)
Constructor.TiledWmsLayer(WmsLayer wmsLayer, java.awt.Dimension tileSize, int tileBufferWidth, int tileBufferHeight)
Create a copy of the given WmsLayer, but tiled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TileCacheInformation
createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi)
Create the tile cache information object for the given parameters.TiledWmsLayerParam
getParams()
Get the HTTP params.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
-
TiledWmsLayer
public TiledWmsLayer(@Nonnull java.util.concurrent.ForkJoinPool forkJoinPool, @Nonnull StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, @Nonnull TiledWmsLayerParam param, @Nonnull 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 layer.param
- the information needed to create WMS requests.registry
- the metrics registry.configuration
- the configuration.
-
TiledWmsLayer
public TiledWmsLayer(WmsLayer wmsLayer, java.awt.Dimension tileSize, int tileBufferWidth, int tileBufferHeight)
Create a copy of the given WmsLayer, but tiled.- Parameters:
wmsLayer
- The source layertileSize
- The size of the tilestileBufferWidth
- The width of the the buffer tile for meta tiletileBufferHeight
- The height of the the buffer tile for meta tile
-
-
Method Detail
-
getParams
public TiledWmsLayerParam getParams()
Get the HTTP params.- Returns:
- the HTTP params
-
createTileInformation
protected 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 MapLayer.RenderType getRenderType()
Description copied from interface:MapLayer
Specify whether layer should be rendered as PNG, JPEG or SVG.- Returns:
- render type
-
-