Package org.mapfish.print.map.geotools
Class AbstractGridCoverage2DReaderLayer
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGeotoolsLayer
-
- org.mapfish.print.map.geotools.AbstractGridCoverage2DReaderLayer
-
- All Implemented Interfaces:
MapLayer
- Direct Known Subclasses:
GeotiffLayer
public abstract class AbstractGridCoverage2DReaderLayer extends AbstractGeotoolsLayer
The AbstractGridCoverage2DReaderLayer class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapfish.print.attribute.map.MapLayer
MapLayer.RenderType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGridCoverage2DReaderLayer(java.util.function.Function<MfClientHttpRequestFactory,@Nullable org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> coverage2DReader, StyleSupplier<org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> style, java.util.concurrent.ExecutorService executorService, AbstractLayerParams params)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getImageBufferScaling()
Get the scale ratio between the tiles resolution and the target resolution.java.util.List<? extends org.geotools.map.Layer>
getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext, Processor.ExecutionContext context)
Get theDataStore
object that contains the data for this layer.-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGeotoolsLayer
getFailOnError, getLayerTransformer, getName, getOpacity, prefetchResources, prepareRender, render, supportsNativeRotation, tryAddLayer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mapfish.print.attribute.map.MapLayer
getRenderType
-
-
-
-
Constructor Detail
-
AbstractGridCoverage2DReaderLayer
protected AbstractGridCoverage2DReaderLayer(java.util.function.Function<MfClientHttpRequestFactory,@Nullable org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> coverage2DReader, StyleSupplier<org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> style, java.util.concurrent.ExecutorService executorService, AbstractLayerParams params)
Constructor.- Parameters:
coverage2DReader
- the coverage2DReader for reading the grid coverage data.style
- style to use for rendering the data.executorService
- the thread pool for doing the rendering.params
- the parameters for this layer
-
-
Method Detail
-
getImageBufferScaling
public final double getImageBufferScaling()
Description copied from interface:MapLayer
Get the scale ratio between the tiles resolution and the target resolution. Used to don't scale the tiles on tiled layer.
-
getLayers
public final java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext, Processor.ExecutionContext context)
Description copied from class:AbstractGeotoolsLayer
Get theDataStore
object that contains the data for this layer.- Specified by:
getLayers
in classAbstractGeotoolsLayer
- Parameters:
httpRequestFactory
- the factory for making http requestsmapContext
- the map transformercontext
- the job ID
-
-