Package org.mapfish.print.map.geotools
Class GeotiffLayer.Plugin
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGridCoverageLayerPlugin
-
- org.mapfish.print.map.geotools.GeotiffLayer.Plugin
-
- All Implemented Interfaces:
MapLayerFactoryPlugin<GeotiffLayer.GeotiffParam>
- Enclosing class:
- GeotiffLayer
public static final class GeotiffLayer.Plugin extends AbstractGridCoverageLayerPlugin implements MapLayerFactoryPlugin<GeotiffLayer.GeotiffParam>
Renders a GeoTIFF image as layer.Type:
geotiff
-
-
Constructor Summary
Constructors Constructor Description Plugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeotiffLayer.GeotiffParam
createParameter()
Create an instance of a param object.java.util.Set<java.lang.String>
getTypeNames()
Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.GeotiffLayer
parse(Template template, GeotiffLayer.GeotiffParam param)
Inspect the json data and return Optional<MapLayer> or Optional.absent().-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGridCoverageLayerPlugin
createStyleSupplier
-
-
-
-
Method Detail
-
getTypeNames
public java.util.Set<java.lang.String> getTypeNames()
Description copied from interface:MapLayerFactoryPlugin
Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.- Specified by:
getTypeNames
in interfaceMapLayerFactoryPlugin<GeotiffLayer.GeotiffParam>
-
createParameter
public GeotiffLayer.GeotiffParam createParameter()
Description copied from interface:MapLayerFactoryPlugin
Create an instance of a param object. Each instance must be new and unique. Instances must NOT be shared.The object will be populated from the json. Each public field will be populated by looking up the value in the json.
The same mechanism used for reading from the JSON into the param object is also used for parsing the JSON into
Attribute
value objects. SeeReflectiveAttribute.createValue(org.mapfish.print.config.Template)
()} for details on how the parsing mechanism works.- Specified by:
createParameter
in interfaceMapLayerFactoryPlugin<GeotiffLayer.GeotiffParam>
-
parse
@Nonnull public GeotiffLayer parse(@Nonnull Template template, @Nonnull GeotiffLayer.GeotiffParam param) throws java.io.IOException
Description copied from interface:MapLayerFactoryPlugin
Inspect the json data and return Optional<MapLayer> or Optional.absent().- Specified by:
parse
in interfaceMapLayerFactoryPlugin<GeotiffLayer.GeotiffParam>
- Parameters:
template
- the configuration related to the current request.param
- an object populated from the json for the layer- Throws:
java.io.IOException
-
-