org.geotools.referencing.operation.projection
Class MapProjection.AbstractProvider

java.lang.Object
  extended byorg.geotools.referencing.wkt.Formattable
      extended byorg.geotools.referencing.AbstractIdentifiedObject
          extended byorg.geotools.referencing.operation.DefaultOperationMethod
              extended byorg.geotools.referencing.operation.MathTransformProvider
                  extended byorg.geotools.referencing.operation.projection.MapProjection.AbstractProvider
All Implemented Interfaces:
org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.OperationMethod, java.io.Serializable
Direct Known Subclasses:
AlbersEqualArea.Provider, EquidistantCylindrical.Provider, LambertConformal1SP.Provider, LambertConformal2SP.Provider, LambertConformalBelgium.Provider, LambertConformalESRI.Provider, Mercator1SP.Provider, Mercator2SP.Provider, NewZealandMapGrid.Provider, ObliqueMercator.Provider, Orthographic.Provider, PlateCarree.Provider, Stereographic.Provider_Oblique, Stereographic.Provider_Polar_A, Stereographic.Provider_Polar_B, Stereographic.Provider_USGS, TransverseMercator.Provider
Enclosing class:
MapProjection

public abstract static class MapProjection.AbstractProvider
extends MathTransformProvider

The base provider for MapProjections.

Version:
$Id: MapProjection.java 17587 2006-01-13 03:43:41Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.geotools.referencing.operation.MathTransformProvider
MathTransformProvider.Delegate
 
Field Summary
static org.opengis.parameter.ParameterDescriptor CENTRAL_MERIDIAN
          The operation parameter descriptor for the central meridian parameter value.
static org.opengis.parameter.ParameterDescriptor FALSE_EASTING
          The operation parameter descriptor for the falseEasting parameter value.
static org.opengis.parameter.ParameterDescriptor FALSE_NORTHING
          The operation parameter descriptor for the falseNorthing parameter value.
static org.opengis.parameter.ParameterDescriptor LATITUDE_OF_ORIGIN
          The operation parameter descriptor for the latitude of origin parameter value.
static org.opengis.parameter.ParameterDescriptor SCALE_FACTOR
          The operation parameter descriptor for the scaleFactor parameter value.
static org.opengis.parameter.ParameterDescriptor SEMI_MAJOR
          The operation parameter descriptor for the semi major parameter value.
static org.opengis.parameter.ParameterDescriptor SEMI_MINOR
          The operation parameter descriptor for the semi minor parameter value.
static org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL
          The operation parameter descriptor for the standard parallel parameter value.
static org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL_1
          The operation parameter descriptor for the standard parallel 1 parameter value.
static org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL_2
          The operation parameter descriptor for the standard parallel 2 parameter value.
 
Fields inherited from class org.geotools.referencing.operation.DefaultOperationMethod
sourceDimensions, targetDimensions
 
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
MapProjection.AbstractProvider(org.opengis.parameter.ParameterDescriptorGroup parameters)
          Constructs a math transform provider from a set of parameters.
 
Method Summary
protected static double doubleValue(org.opengis.parameter.ParameterDescriptor param, org.opengis.parameter.ParameterValueGroup group)
          Returns the parameter value for the specified operation parameter in standard units.
protected  java.lang.Class getOperationType()
          Returns the operation type for this map projection.
 
Methods inherited from class org.geotools.referencing.operation.MathTransformProvider
createDescriptor, createDescriptorGroup, createMathTransform, createOptionalDescriptor, ensureValidValues, formatWKT, intValue, stringValue, value
 
Methods inherited from class org.geotools.referencing.operation.DefaultOperationMethod
checkDimensions, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCode
 
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches
 
Methods inherited from class org.geotools.referencing.wkt.Formattable
toString, toWKT, toWKT, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Field Detail

SEMI_MAJOR

public static final org.opengis.parameter.ParameterDescriptor SEMI_MAJOR
The operation parameter descriptor for the semi major parameter value. Valid values range is from 0 to infinity. This parameter is mandatory.

To Do:
Would like to start range from 0 exclusive.

SEMI_MINOR

public static final org.opengis.parameter.ParameterDescriptor SEMI_MINOR
The operation parameter descriptor for the semi minor parameter value. Valid values range is from 0 to infinity. This parameter is mandatory.

To Do:
Would like to start range from 0 exclusive.

CENTRAL_MERIDIAN

public static final org.opengis.parameter.ParameterDescriptor CENTRAL_MERIDIAN
The operation parameter descriptor for the central meridian parameter value. Valid values range is from -180 to 180?. Default value is 0.


LATITUDE_OF_ORIGIN

public static final org.opengis.parameter.ParameterDescriptor LATITUDE_OF_ORIGIN
The operation parameter descriptor for the latitude of origin parameter value. Valid values range is from -90 to 90?. Default value is 0.


STANDARD_PARALLEL

public static final org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL
The operation parameter descriptor for the standard parallel parameter value. Valid values range is from -90 to 90?. Default value is 0.


STANDARD_PARALLEL_1

public static final org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL_1
The operation parameter descriptor for the standard parallel 1 parameter value. Valid values range is from -90 to 90?. Default value is 0.


STANDARD_PARALLEL_2

public static final org.opengis.parameter.ParameterDescriptor STANDARD_PARALLEL_2
The operation parameter descriptor for the standard parallel 2 parameter value. Valid values range is from -90 to 90?. Default value is 0.


SCALE_FACTOR

public static final org.opengis.parameter.ParameterDescriptor SCALE_FACTOR
The operation parameter descriptor for the scaleFactor parameter value. Valid values range is from 0 to infinity. Default value is 1.

To Do:
Would like to start range from 0 exclusive.

FALSE_EASTING

public static final org.opengis.parameter.ParameterDescriptor FALSE_EASTING
The operation parameter descriptor for the falseEasting parameter value. Valid values range is unrestricted. Default value is 0.


FALSE_NORTHING

public static final org.opengis.parameter.ParameterDescriptor FALSE_NORTHING
The operation parameter descriptor for the falseNorthing parameter value. Valid values range is unrestricted. Default value is 0.

Constructor Detail

MapProjection.AbstractProvider

public MapProjection.AbstractProvider(org.opengis.parameter.ParameterDescriptorGroup parameters)
Constructs a math transform provider from a set of parameters. The provider identifiers will be the same than the parameter ones.

Parameters:
parameters - The set of parameters (never ).
Method Detail

getOperationType

protected java.lang.Class getOperationType()
Returns the operation type for this map projection.

Overrides:
getOperationType in class MathTransformProvider

doubleValue

protected static double doubleValue(org.opengis.parameter.ParameterDescriptor param,
                                    org.opengis.parameter.ParameterValueGroup group)
                             throws org.opengis.parameter.ParameterNotFoundException
Returns the parameter value for the specified operation parameter in standard units. Values are automatically converted into the standard units specified by the supplied argument, except degrees which are converted to radians. This conversion is performed because the radians units are standard for all internal computations in the map projection package. For example they are the standard units for latitudeOfOrigin and centralMeridian fields in the MapProjection class.

Parameters:
param - The parameter to look for.
group - The parameter value group to search into.
Returns:
The requested parameter value.
Throws:
org.opengis.parameter.ParameterNotFoundException - if the parameter is not found.


Copyright © GeoTools. All Rights Reserved.