Class ShadedRelief
- Object
-
- AbstractOperation
-
- Operation2D
-
- OperationJAI
-
- ShadedRelief
-
- All Implemented Interfaces:
Serializable,Operation
public class ShadedRelief extends OperationJAI
A simple wrapper for the jai-ext ShadedRelief operation.Creates a hillshade effect on a grid containing altitude measures.
Name:
"ShadedRelief"
JAI operator:"ShadedRelief"
Parameters:Name Class Default value Allowed values Property name "Source"GridCoverage2DN/A "roi"javax.media.jai.ROIN/A "srcNoData"it.geosolutions.jaiext.range.Range"dstNoData"double0.0 "resX"double1.0 "resY"double1.0 "zetaFactor"double1.0 "scale"double1.0 "altitude"double1.0 JAI-EXT.shadedrelief.altitude "azimuth"double1.0 JAI-EXT.shadedrelief.azimuth "algorithm"it.geosolutions.jaiext.shadedrelief.ShadedReliefAlgorithmCOMBINED ZEVENBERGEN_THORNE, ZEVENBERGEN_THORNE_COMBINED, COMBINED JAI-EXT.shadedrelief.algorithm - Author:
- Emanuele Tajariol
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description static String[]CUSTOMIZABLE_PARAMSstatic StringPARAM_ALGORITHMstatic StringPARAM_ALTITUDEstatic StringPARAM_AZIMUTHstatic StringPARAM_DSTNODATAstatic StringPARAM_RESXstatic StringPARAM_RESYstatic StringPARAM_ROIstatic StringPARAM_SCALEstatic StringPARAM_SRCNODATAstatic StringPARAM_ZETAstatic StringSTATS_PROPERTYShadedRelief property name-
Fields inherited from class OperationJAI
operation, RENDERED_MODE
-
Fields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0
-
Fields inherited from class AbstractOperation
descriptor
-
-
Constructor Summary
Constructors Constructor Description ShadedRelief()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the processing operation.protected Map<String,?>getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)Prepares the properties to be given to the coverage created by thederiveGridCoveragemethod.protected voidhandleJAIEXTParams(ParameterBlockJAI jaiParams, ParameterValueGroup params)Extension point for adding to the JAIParameterBlockJAIobject the parameters defined in theParameterValueGroup, which can be read by the JAI-EXT operations.-
Methods inherited from class OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometry
-
Methods inherited from class Operation2D
extractSources, getFactory
-
Methods inherited from class AbstractOperation
getDescription, getDocURL, getNumSources, getParameters, getVendor, getVersion, toString
-
-
-
-
Field Detail
-
STATS_PROPERTY
public static final String STATS_PROPERTY
ShadedRelief property name- See Also:
- Constant Field Values
-
PARAM_ROI
public static final String PARAM_ROI
- See Also:
- Constant Field Values
-
PARAM_SRCNODATA
public static final String PARAM_SRCNODATA
- See Also:
- Constant Field Values
-
PARAM_DSTNODATA
public static final String PARAM_DSTNODATA
- See Also:
- Constant Field Values
-
PARAM_RESX
public static final String PARAM_RESX
- See Also:
- Constant Field Values
-
PARAM_RESY
public static final String PARAM_RESY
- See Also:
- Constant Field Values
-
PARAM_ZETA
public static final String PARAM_ZETA
- See Also:
- Constant Field Values
-
PARAM_SCALE
public static final String PARAM_SCALE
- See Also:
- Constant Field Values
-
PARAM_ALTITUDE
public static final String PARAM_ALTITUDE
- See Also:
- Constant Field Values
-
PARAM_AZIMUTH
public static final String PARAM_AZIMUTH
- See Also:
- Constant Field Values
-
PARAM_ALGORITHM
public static final String PARAM_ALGORITHM
- See Also:
- Constant Field Values
-
CUSTOMIZABLE_PARAMS
public static final String[] CUSTOMIZABLE_PARAMS
-
-
Constructor Detail
-
ShadedRelief
public ShadedRelief() throws OperationNotFoundException- Throws:
OperationNotFoundException
-
-
Method Detail
-
getName
public String getName()
Description copied from class:AbstractOperationReturns the name of the processing operation. The default implementation returns the AbstractOperation.descriptor code name.- Specified by:
getNamein interfaceOperation- Overrides:
getNamein classAbstractOperation- Returns:
- The name of the processing operation.
-
handleJAIEXTParams
protected void handleJAIEXTParams(ParameterBlockJAI jaiParams, ParameterValueGroup params)Description copied from class:OperationJAIExtension point for adding to the JAIParameterBlockJAIobject the parameters defined in theParameterValueGroup, which can be read by the JAI-EXT operations.Notice that if you are using JAI, the new parameters will not be accepted by the
ParameterBlockJAIinstance.- Overrides:
handleJAIEXTParamsin classOperationJAI- Parameters:
jaiParams-ParameterBlockJAIinstance used by the current JAI-EXT/JAI operationparams-ParameterValueGroupinstance containing input operation parameters
-
getProperties
protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
Description copied from class:OperationJAIPrepares the properties to be given to the coverage created by thederiveGridCoveragemethod. The default implementation returnsnull.- Overrides:
getPropertiesin classOperationJAI- Parameters:
data- TheRenderedImagecreated by this operation.crs- The coordinate reference system assigned to the coverage thisOperationJAIwill produce.name- The name assigned to the coverage thisOperationJAIwill produce.gridToCRS- The transform from grid tocrsto be assigned to the coverage thisOperationJAIwill produce.sources- The sources to be assigned to the coverage thisOperationJAIwill produce.parameters- The parameters that were used by thisOperationJAI.- Returns:
- a
Mapwith the properties generated by thisOperationJAIor null if we haven't any.
-
-