|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.ct.MathTransformProvider
MathTransformProvider
in the org.geotools.referencing.operation
package.
Base class for MathTransform
providers. Instance of this class
allow the creation of transform objects from a classification name.
Note: this class is not part of OpenGIS specification and
may change in a future version. Do not rely strongly on it.
Field Summary | |
static javax.media.jai.ParameterListDescriptor |
DEFAULT_PROJECTION_DESCRIPTOR
Deprecated. A default parameter list descriptor for map projections. |
protected static javax.media.jai.util.Range |
LATITUDE_RANGE
Deprecated. Range of latitude values. |
protected static javax.media.jai.util.Range |
LONGITUDE_RANGE
Deprecated. Range of longitude values. |
protected static javax.media.jai.util.Range |
POSITIVE_RANGE
Deprecated. Range of positives values. |
Constructor Summary | |
protected |
MathTransformProvider(java.lang.String classification,
javax.media.jai.ParameterListDescriptor inherit)
Deprecated. Construct a new provider. |
Method Summary | |
abstract MathTransform |
create(javax.media.jai.ParameterList parameters)
Deprecated. Returns a transform for the specified parameters. |
protected MathTransform |
create(Projection projection)
Deprecated. Returns a transform for the specified projection. |
java.lang.String |
getClassName()
Deprecated. Returns the classification name. |
java.lang.String |
getName(java.util.Locale locale)
Deprecated. Returns a human readable name localized for the specified locale. |
javax.media.jai.ParameterList |
getParameterList()
Deprecated. Returns a newly created parameter list. |
javax.media.jai.ParameterListDescriptor |
getParameterListDescriptor()
Deprecated. Returns the parameter list descriptor. |
protected void |
put(java.lang.String parameter,
double defaultValue,
javax.media.jai.util.Range range)
Deprecated. Adds or changes a parameter to this math transform provider. |
protected void |
remove(java.lang.String parameter)
Deprecated. Remove a parameter from this math transform provider. |
java.lang.String |
toString()
Deprecated. Returns a string representation for this provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final javax.media.jai.util.Range POSITIVE_RANGE
protected static final javax.media.jai.util.Range LONGITUDE_RANGE
protected static final javax.media.jai.util.Range LATITUDE_RANGE
public static final javax.media.jai.ParameterListDescriptor DEFAULT_PROJECTION_DESCRIPTOR
"semi_major"
,
"semi_minor"
,
"central_meridian"
,
"latitude_of_origin"
,
"scale_factor"
,
"false_easting"
and
"false_northing"
parameters.
Constructor Detail |
protected MathTransformProvider(java.lang.String classification, javax.media.jai.ParameterListDescriptor inherit)
classification
- The classification name.inherit
- The parameter list descriptor to inherit from, or null
if there is none. All parameter descriptions from inherit
will
be copied into this newly created MathTransformProvider
. For
map projections, this argument may be DEFAULT_PROJECTION_DESCRIPTOR
.
Subclasses may add or change parameters in their constructor by invoking
put(java.lang.String, double, javax.media.jai.util.Range)
.Method Detail |
protected final void put(java.lang.String parameter, double defaultValue, javax.media.jai.util.Range range) throws java.lang.IllegalStateException
MathTransformProvider
has been constructed with DEFAULT_PROJECTION_DESCRIPTOR
as argument, then default values are
already provided for "semi_major", "semi_minor", "central_meridian",
"latitude_of_origin", "scale_factor", "false_easting" and "false_northing".
Subclasses may call this method in their constructor for adding or
changing parameters.
parameter
- The parameter name.defaultValue
- The default value for this parameter, or
Double.NaN
if there is none.range
- The range of legal values. May be one of the predefined
constants (POSITIVE_RANGE
, LONGITUDE_RANGE
,
LATITUDE_RANGE
) or any other Range
object.
May be null
if all values are valid for this
parameter.
java.lang.IllegalStateException
- If getParameterList()
has already
been invoked prior to this call.protected final void remove(java.lang.String parameter) throws java.lang.IllegalStateException
parameter
- The parameter name to remove.
java.lang.IllegalStateException
- If getParameterList()
has already been invoked prior to this call.public java.lang.String getClassName()
public java.lang.String getName(java.util.Locale locale)
public javax.media.jai.ParameterListDescriptor getParameterListDescriptor()
put(java.lang.String, double, javax.media.jai.util.Range)
.
public javax.media.jai.ParameterList getParameterList()
public abstract MathTransform create(javax.media.jai.ParameterList parameters) throws MissingParameterException, org.opengis.referencing.FactoryException
parameters
- The parameter values in standard units.
MathTransform
object of this classification.
MissingParameterException
- if a mandatory parameter is missing.
org.opengis.referencing.FactoryException
- if the transform can't be created.protected MathTransform create(Projection projection) throws MissingParameterException, org.opengis.referencing.FactoryException
create(ParameterList)
with the projection's parameters.
projection
- The projection.
MathTransform
object of this classification.
MissingParameterException
- if a mandatory parameter is missing.
org.opengis.referencing.FactoryException
- if the transform can't be created for some other reason.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |