Class ProjectionUTM
- java.lang.Object
-
- gov.nasa.worldwind.globes.projections.AbstractGeographicProjection
-
- gov.nasa.worldwind.globes.projections.ProjectionTransverseMercator
-
- gov.nasa.worldwind.globes.projections.ProjectionUTM
-
- All Implemented Interfaces:
GeographicProjection
public class ProjectionUTM extends ProjectionTransverseMercator
Implements a TransverseMercator projection for a specified UTM zone.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_ZONEprotected intzone-
Fields inherited from class gov.nasa.worldwind.globes.projections.ProjectionTransverseMercator
centralLatitude, centralMeridian, DEFAULT_CENTRAL_LATITUDE, DEFAULT_CENTRAL_MERIDIAN, DEFAULT_WIDTH, width
-
Fields inherited from class gov.nasa.worldwind.globes.projections.AbstractGeographicProjection
projectionLimits
-
-
Constructor Summary
Constructors Constructor Description ProjectionUTM()Creates a projection for UTM zone 1.ProjectionUTM(int zone)Implements a Transverse Mercator projection for a specified UTM zone.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnglecentralMeridianForZone(int zone)protected doublegetScale()intgetZone()Indicates the UTM zone of this projection.voidsetZone(int zone)Specifies the UTM zone for this projection.-
Methods inherited from class gov.nasa.worldwind.globes.projections.ProjectionTransverseMercator
cartesianToGeographic, equals, geographicToCartesian, geographicToCartesian, getCentralLatitude, getCentralMeridian, getName, getWidth, hashCode, isContinuous, makeProjectionLimits, northPointingTangent, setCentralLatitude, setCentralMeridian, setWidth
-
Methods inherited from class gov.nasa.worldwind.globes.projections.AbstractGeographicProjection
getProjectionLimits, setProjectionLimits
-
-
-
-
Field Detail
-
DEFAULT_ZONE
protected static final int DEFAULT_ZONE
- See Also:
- Constant Field Values
-
zone
protected int zone
-
-
Constructor Detail
-
ProjectionUTM
public ProjectionUTM()
Creates a projection for UTM zone 1.
-
ProjectionUTM
public ProjectionUTM(int zone)
Implements a Transverse Mercator projection for a specified UTM zone.- Parameters:
zone- The UTM zone of this projection, a value between 1 and 60, inclusive.- Throws:
java.lang.IllegalArgumentException- if the specified zone is less than 1 or greater than 60.
-
-
Method Detail
-
getScale
protected double getScale()
- Overrides:
getScalein classProjectionTransverseMercator
-
getZone
public int getZone()
Indicates the UTM zone of this projection.- Returns:
- The UTM zone, a value between 1 and 60, inclusive.
-
setZone
public void setZone(int zone)
Specifies the UTM zone for this projection.- Parameters:
zone- The UTM zone, a value between 1 and 60, inclusive.- Throws:
java.lang.IllegalArgumentException- If the specified zone is less than 1 or greater than 60.- See Also:
ProjectionTransverseMercator
-
centralMeridianForZone
public static Angle centralMeridianForZone(int zone)
-
-