public final class WmsLayer extends AbstractSingleImageLayer
MapLayer.RenderTypeconfiguration, registry| Modifier | Constructor and Description |
|---|---|
protected |
WmsLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
WmsLayerParam params,
com.codahale.metrics.MetricRegistry registry,
Configuration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration() |
WmsLayerParam |
getParams()
Get the HTTP params.
|
com.codahale.metrics.MetricRegistry |
getRegistry() |
MapLayer.RenderType |
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.
|
protected java.awt.image.BufferedImage |
loadImage(MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer)
Load the image at the requested size for the provided map bounds.
|
void |
prefetchResources(HttpRequestFetcher httpRequestFetcher,
MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer,
Processor.ExecutionContext context)
Cache any needed resources on disk.
|
boolean |
supportsNativeRotation()
If supported by the WMS server, a parameter "angle" can be set on "customParams" or "mergeableParams".
|
createErrorImage, fetchImage, getImageBufferScaling, getLayers, getStyleSuppliergetFailOnError, getLayerTransformer, getName, getOpacity, prepareRender, render, tryAddLayerprotected WmsLayer(@Nonnull
java.util.concurrent.ExecutorService executorService,
@Nonnull
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
@Nonnull
WmsLayerParam params,
@Nonnull
com.codahale.metrics.MetricRegistry registry,
@Nonnull
Configuration configuration)
executorService - the thread pool for doing the rendering.styleSupplier - the style to use when drawing the constructed grid coverage on the map.params - the params from the request data.registry - the metrics registry.configuration - the configuration.protected java.awt.image.BufferedImage loadImage(@Nonnull
MfClientHttpRequestFactory requestFactory,
@Nonnull
MapfishMapContext transformer)
throws java.lang.Throwable
AbstractSingleImageLayerloadImage in class AbstractSingleImageLayerrequestFactory - the factory to use for making http requeststransformer - object containing map rendering informationjava.lang.Throwablepublic WmsLayerParam getParams()
public boolean supportsNativeRotation()
supportsNativeRotation in interface MapLayersupportsNativeRotation in class AbstractGeotoolsLayerpublic MapLayer.RenderType getRenderType()
MapLayerpublic void prefetchResources(@Nonnull
HttpRequestFetcher httpRequestFetcher,
@Nonnull
MfClientHttpRequestFactory requestFactory,
@Nonnull
MapfishMapContext transformer,
@Nonnull
Processor.ExecutionContext context)
MapLayerprefetchResources in interface MapLayerprefetchResources in class AbstractGeotoolsLayerhttpRequestFetcher - TODOrequestFactory - client http request factorytransformer - transformercontext - the job IDpublic com.codahale.metrics.MetricRegistry getRegistry()
public Configuration getConfiguration()