Package org.mapfish.print.map.geotools
Class GeotiffLayer
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGeotoolsLayer
-
- org.mapfish.print.map.geotools.AbstractGridCoverage2DReaderLayer
-
- org.mapfish.print.map.geotools.GeotiffLayer
-
- All Implemented Interfaces:
MapLayer
public final class GeotiffLayer extends AbstractGridCoverage2DReaderLayer
Reads a GeoTIFF file from an URL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeotiffLayer.GeotiffParam
The parameters for reading a Geotiff file, either from the server or from a URL.static class
GeotiffLayer.Plugin
Renders a GeoTIFF image as layer.-
Nested classes/interfaces inherited from interface org.mapfish.print.attribute.map.MapLayer
MapLayer.RenderType
-
-
Constructor Summary
Constructors Constructor Description GeotiffLayer(java.util.function.Function<MfClientHttpRequestFactory,org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> reader, 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 MapLayer.RenderType
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGridCoverage2DReaderLayer
getImageBufferScaling, getLayers
-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGeotoolsLayer
getFailOnError, getLayerTransformer, getName, getOpacity, prefetchResources, prepareRender, render, supportsNativeRotation, tryAddLayer
-
-
-
-
Constructor Detail
-
GeotiffLayer
public GeotiffLayer(java.util.function.Function<MfClientHttpRequestFactory,org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> reader, StyleSupplier<org.geotools.coverage.grid.io.AbstractGridCoverage2DReader> style, java.util.concurrent.ExecutorService executorService, AbstractLayerParams params)
Constructor.- Parameters:
reader
- the reader to use for reading the geotiff.style
- style to use for rendering the data.executorService
- the thread pool for doing the rendering.params
- the parameters for this layer
-
-
Method Detail
-
getRenderType
public MapLayer.RenderType getRenderType()
Description copied from interface:MapLayer
Specify whether layer should be rendered as PNG, JPEG or SVG.- Returns:
- render type
-
-