Class ShadedRelief
Object
AbstractOperation
Operation2D
OperationJAI
ShadedRelief
- All Implemented Interfaces:
Serializable
,Operation
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 <etj at geo-solutions.it>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
ShadedRelief property nameFields 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 -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the processing operation.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 Details
-
STATS_PROPERTY
ShadedRelief property name- See Also:
-
PARAM_ROI
- See Also:
-
PARAM_SRCNODATA
- See Also:
-
PARAM_DSTNODATA
- See Also:
-
PARAM_RESX
- See Also:
-
PARAM_RESY
- See Also:
-
PARAM_ZETA
- See Also:
-
PARAM_SCALE
- See Also:
-
PARAM_ALTITUDE
- See Also:
-
PARAM_AZIMUTH
- See Also:
-
PARAM_ALGORITHM
- See Also:
-
CUSTOMIZABLE_PARAMS
-
-
Constructor Details
-
ShadedRelief
- Throws:
OperationNotFoundException
-
-
Method Details
-
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
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.
-