public abstract class AbstractSingleImageLayer extends AbstractGeotoolsLayer
MapLayer.RenderType| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSingleImageLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
AbstractLayerParams params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getImageBufferScaling()
Get the scale ratio between the tiles resolution and the target resolution.
|
protected java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext)
Get the
DataStore object that contains the data for this layer. |
protected abstract java.awt.image.BufferedImage |
loadImage(MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer)
Load the image at the requested size for the provided map bounds.
|
cacheResources, getFailOnError, getLayerTransformer, getName, prepareRender, render, supportsNativeRotation, tryAddLayerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderTypeprotected AbstractSingleImageLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
AbstractLayerParams params)
executorService - the thread pool for doing the rendering.styleSupplier - the style to use when drawing the constructed grid coverage on the map.params - the parameters for this layerprotected final java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext) throws java.lang.Exception
AbstractGeotoolsLayerDataStore object that contains the data for this layer.getLayers in class AbstractGeotoolsLayerhttpRequestFactory - the factory for making http requestsmapContext - the map transformerjava.lang.Exceptionprotected abstract java.awt.image.BufferedImage loadImage(MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer) throws java.lang.Throwable
requestFactory - the factory to use for making http requeststransformer - object containing map rendering informationjava.lang.Throwablepublic final double getImageBufferScaling()
MapLayer