org.geotoolkit.referencing.operation.projection
Class TransverseMercator.Parameters

Object
  extended by AbstractMathTransform2D.Parameters
      extended by UnitaryProjection.Parameters
          extended by TransverseMercator.Parameters
All Implemented Interfaces:
Serializable, Parameterized
Enclosing class:
TransverseMercator

protected static class TransverseMercator.Parameters
extends UnitaryProjection.Parameters

Parameters of a Transverse Mercator projection. This class contains convenience methods for computing the zone of current projection.

Since:
3.00
Version:
3.00
Author:
Martin Desruisseaux (Geomatys)
See Also:
Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
 
Fields inherited from class UnitaryProjection.Parameters
azimuth, centralMeridian, falseEasting, falseNorthing, latitudeOfOrigin, scaleFactor, semiMajor, semiMinor, standardParallels
 
Constructor Summary
TransverseMercator.Parameters(ParameterDescriptorGroup descriptor, ParameterValueGroup values)
          Creates parameters initialized to values extracted from the given parameter group.
 
Method Summary
 double getCentralMeridian()
          Convenience method returning the meridian in the middle of current zone.
 int getZone()
          Convenience method computing the zone code from the central meridian.
 
Methods inherited from class UnitaryProjection.Parameters
equals, getParameterValues, hashCode, validate
 
Methods inherited from class AbstractMathTransform2D.Parameters
createConcatenatedTransform, getParameterDescriptors, normalize, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransverseMercator.Parameters

public TransverseMercator.Parameters(ParameterDescriptorGroup descriptor,
                                     ParameterValueGroup values)
                              throws ParameterNotFoundException
Creates parameters initialized to values extracted from the given parameter group.

Parameters:
descriptor - The descriptor of parameters that are legal for the projection being constructed.
values - The parameter values in standard units.
Throws:
ParameterNotFoundException - if a mandatory parameter is missing.
Method Detail

getZone

public int getZone()
            throws IllegalStateException
Convenience method computing the zone code from the central meridian. This method uses the scale factor and false easting to decide if this is a UTM or MTM case.

Returns:
The zone number. Numbering starts at 1.
Throws:
IllegalStateException - if the case of the projection cannot be determined.

getCentralMeridian

public double getCentralMeridian()
                          throws IllegalStateException
Convenience method returning the meridian in the middle of current zone. This meridian is typically the central meridian. This method may be invoked to make sure that the central meridian is correctly set.

This method uses the scale factor and false easting to decide if this is a UTM or MTM case.

Returns:
The central meridian, in decimal degrees.
Throws:
IllegalStateException - if the case of the projection cannot be determined.


Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.