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"
GridCoverage2D
N/A "roi"
javax.media.jai.ROI
N/A "srcNoData"
it.geosolutions.jaiext.range.Range
"dstNoData"
double
0.0 "resX"
double
1.0 "resY"
double
1.0 "zetaFactor"
double
1.0 "scale"
double
1.0 "altitude"
double
1.0 JAI-EXT.shadedrelief.altitude "azimuth"
double
1.0 JAI-EXT.shadedrelief.azimuth "algorithm"
it.geosolutions.jaiext.shadedrelief.ShadedReliefAlgorithm
COMBINED 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_PARAMS
static String
PARAM_ALGORITHM
static String
PARAM_ALTITUDE
static String
PARAM_AZIMUTH
static String
PARAM_DSTNODATA
static String
PARAM_RESX
static String
PARAM_RESY
static String
PARAM_ROI
static String
PARAM_SCALE
static String
PARAM_SRCNODATA
static String
PARAM_ZETA
static String
STATS_PROPERTY
ShadedRelief 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 String
getName()
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 thederiveGridCoverage
method.protected void
handleJAIEXTParams(ParameterBlockJAI jaiParams, ParameterValueGroup params)
Extension point for adding to the JAIParameterBlockJAI
object 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:AbstractOperation
Returns the name of the processing operation. The default implementation returns the AbstractOperation.descriptor code name.- Specified by:
getName
in interfaceOperation
- Overrides:
getName
in classAbstractOperation
- Returns:
- The name of the processing operation.
-
handleJAIEXTParams
protected void handleJAIEXTParams(ParameterBlockJAI jaiParams, ParameterValueGroup params)
Description copied from class:OperationJAI
Extension point for adding to the JAIParameterBlockJAI
object 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
ParameterBlockJAI
instance.- Overrides:
handleJAIEXTParams
in classOperationJAI
- Parameters:
jaiParams
-ParameterBlockJAI
instance used by the current JAI-EXT/JAI operationparams
-ParameterValueGroup
instance 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:OperationJAI
Prepares the properties to be given to the coverage created by thederiveGridCoverage
method. The default implementation returnsnull
.- Overrides:
getProperties
in classOperationJAI
- Parameters:
data
- TheRenderedImage
created by this operation.crs
- The coordinate reference system assigned to the coverage thisOperationJAI
will produce.name
- The name assigned to the coverage thisOperationJAI
will produce.gridToCRS
- The transform from grid tocrs
to be assigned to the coverage thisOperationJAI
will produce.sources
- The sources to be assigned to the coverage thisOperationJAI
will produce.parameters
- The parameters that were used by thisOperationJAI
.- Returns:
- a
Map
with the properties generated by thisOperationJAI
or null if we haven't any.
-
-