Class IdentityTransformDescriptor
- java.lang.Object
-
- org.esa.snap.core.dataop.maptransf.IdentityTransformDescriptor
-
- All Implemented Interfaces:
MapTransformDescriptor
@Deprecated public class IdentityTransformDescriptor extends Object implements MapTransformDescriptor
Deprecated.since BEAM 4.7, use geotoolsPlateCarree.Provider
instead.The descriptor for a map transformation which represents the identity transformation.- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAP_UNIT
Deprecated.static String
NAME
Deprecated.static double[]
PARAMETER_DEFAULT_VALUES
Deprecated.static Parameter[]
PARAMETERS
Deprecated.static String
TYPE_ID
Deprecated.
-
Constructor Summary
Constructors Constructor Description IdentityTransformDescriptor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MapTransform
createTransform(double[] parameterValues)
Deprecated.Creates an instance of the map transform for the given parameter values.String
getMapUnit()
Deprecated.String
getName()
Deprecated.Gets a descriptive name for this map transformation descriptor.double[]
getParameterDefaultValues()
Deprecated.Gets the default parameter values for this map transform.Parameter[]
getParameters()
Deprecated.Gets the parameters for this map transform.MapTransformUI
getTransformUI(MapTransform transform)
Deprecated.Gets a user interface for editing the transformation properties of a map projection.String
getTypeID()
Deprecated.boolean
hasTransformUI()
Deprecated.Tests if a user interface is available.void
registerProjections()
Deprecated.This method is called within the
method after an instance of thisMapProjectionRegistry.registerDescriptor(org.esa.snap.core.dataop.maptransf.MapTransformDescriptor)
MapTransformDescriptor
has been successfully registered.
-
-
-
Field Detail
-
TYPE_ID
public static final String TYPE_ID
Deprecated.- See Also:
- Constant Field Values
-
NAME
public static final String NAME
Deprecated.- See Also:
- Constant Field Values
-
MAP_UNIT
public static final String MAP_UNIT
Deprecated.- See Also:
- Constant Field Values
-
PARAMETERS
public static final Parameter[] PARAMETERS
Deprecated.
-
PARAMETER_DEFAULT_VALUES
public static final double[] PARAMETER_DEFAULT_VALUES
Deprecated.
-
-
Method Detail
-
registerProjections
public void registerProjections()
Deprecated.Description copied from interface:MapTransformDescriptor
This method is called within the
method after an instance of thisMapProjectionRegistry.registerDescriptor(org.esa.snap.core.dataop.maptransf.MapTransformDescriptor)
MapTransformDescriptor
has been successfully registered. The method can and should be used to register projections that are based on the type of
described by thisMapTransform
MapTransformDescriptor
. Registering projection instances is done using the using the
method.MapProjectionRegistry.registerProjection(org.esa.snap.core.dataop.maptransf.MapProjection)
A typical implementation of this method would be:
public void registerProjections() { MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-1", new MyMapTransform(param_1))); MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-2", new MyMapTransform(param_2))); MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-3", new MyMapTransform(param_3))); ... }
- Specified by:
registerProjections
in interfaceMapTransformDescriptor
-
getName
public String getName()
Deprecated.Gets a descriptive name for this map transformation descriptor.- Specified by:
getName
in interfaceMapTransformDescriptor
- Returns:
- A descriptive name for this map transformation descriptor, e.g. "Transverse Mercator".
-
getTypeID
public String getTypeID()
Deprecated.- Specified by:
getTypeID
in interfaceMapTransformDescriptor
- Returns:
- The unique type identifier for the map transformation, e.g. "Transverse_Mercator".
-
getMapUnit
public String getMapUnit()
Deprecated.- Specified by:
getMapUnit
in interfaceMapTransformDescriptor
- Returns:
- The unit of the map, e.g. "degree" or "meter".
-
getParameters
public Parameter[] getParameters()
Deprecated.Description copied from interface:MapTransformDescriptor
Gets the parameters for this map transform.Important: Changing elements in the returned array may change this object's state.
- Specified by:
getParameters
in interfaceMapTransformDescriptor
- Returns:
- The list of parameters required to create a new instance of the map transform.
-
getParameterDefaultValues
public double[] getParameterDefaultValues()
Deprecated.Gets the default parameter values for this map transform.- Specified by:
getParameterDefaultValues
in interfaceMapTransformDescriptor
- Returns:
- The default parameter values for this map transform.
-
hasTransformUI
public boolean hasTransformUI()
Deprecated.Tests if a user interface is available. Returnsfalse
because a user interface is not available for this descriptor.- Specified by:
hasTransformUI
in interfaceMapTransformDescriptor
- Returns:
- always
false
-
getTransformUI
public MapTransformUI getTransformUI(MapTransform transform)
Deprecated.Gets a user interface for editing the transformation properties of a map projection. Returnsnull
because a user interface is not available for this descriptor.- Specified by:
getTransformUI
in interfaceMapTransformDescriptor
- Parameters:
transform
- ignored- Returns:
- always
null
-
createTransform
public MapTransform createTransform(double[] parameterValues)
Deprecated.Description copied from interface:MapTransformDescriptor
Creates an instance of the map transform for the given parameter values. The parameter value array must exactly match the size and semantics of the parameters returned by theMapTransformDescriptor.getParameters()
method.Important: Implementors of this method shall ensure that an element-wise copy of the given parameter array is created and set.
- Specified by:
createTransform
in interfaceMapTransformDescriptor
- Parameters:
parameterValues
- the parameter values. If null, a map transform with default parameter values is created- Returns:
- a new instance of a map transform with the array of parameters being copied, never null
-
-