org.geotoolkit.referencing.operation.projection
Class TransverseMercator.Parameters
Object
AbstractMathTransform2D.Parameters
UnitaryProjection.Parameters
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:
|
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. |
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.
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.