@Deprecated public class UTM extends Object
UTM
class provides useful, static methods for dealing with the UTM map-projection.Modifier and Type | Field and Description |
---|---|
static String |
AUTO_PROJECTION_NAME
Deprecated.
The name of the automatic zone projection.
|
static int |
MAX_UTM_ZONE
Deprecated.
The maximum UTM zone number.
|
static int |
MAX_UTM_ZONE_INDEX
Deprecated.
The maximum zone index.
|
static int |
MIN_UTM_ZONE_INDEX
Deprecated.
The minimum zone index.
|
Modifier and Type | Method and Description |
---|---|
static UTMProjection |
createAutoZoneProjection()
Deprecated.
Creates an automatic-zone UTM map projection.
|
static UTMProjection |
createProjection(int zoneIndex,
boolean south)
Deprecated.
Creates an UTM map projection for the specified parameters.
|
static UTMProjection |
createProjection(String projName,
int zoneIndex,
boolean south)
Deprecated.
Creates a predefined UTM map projection for the specified parameters.
|
static double |
getCentralMeridian(int zoneIndex)
Deprecated.
Computes the central meridian from the given UTM zone index.
|
static String |
getProjectionName(int zoneIndex,
boolean south)
Deprecated.
Gets a suitable name for the projection given by the specified UTM projection parameters.
|
static double[] |
getProjectionParams(int zoneIndex,
boolean south)
Deprecated.
Gets the UTM projection parameters for the transverse mercator transformation.
|
static MapProjection |
getSuitableProjection(GeoPos geoPos)
Deprecated.
Gets the UTM projection suitable for the given geodetic coordinate.
|
static int |
getZoneIndex(float longitude)
Deprecated.
Computes the UTM zone index from the longitude value.
|
static boolean |
isAutoZoneProjection(MapProjection mapProjection)
Deprecated.
Checks whether or not the given map projection is an automatic UTM projection.
|
static void |
registerProjections()
Deprecated.
Registers all possible UTM projections in the
. |
public static final String AUTO_PROJECTION_NAME
public static final int MIN_UTM_ZONE_INDEX
public static final int MAX_UTM_ZONE_INDEX
public static final int MAX_UTM_ZONE
public static boolean isAutoZoneProjection(MapProjection mapProjection)
mapProjection
- the map projection, must not be null
true
if sopublic static UTMProjection createAutoZoneProjection()
public static UTMProjection createProjection(int zoneIndex, boolean south)
zoneIndex
- the zone index in the range 0 to MAX_UTM_ZONE
- 1.south
- whether or not the projection is defined for the southern hemisperegetProjectionName(int, boolean)
public static UTMProjection createProjection(String projName, int zoneIndex, boolean south)
projName
- a name for the projection, e.g. "UTM 33"
zoneIndex
- the zone index in the range 0 to MAX_UTM_ZONE
- 1.south
- whether or not the projection is defined for the southern hemisperepublic static String getProjectionName(int zoneIndex, boolean south)
zoneIndex
- the zone index in the range 0 to MAX_UTM_ZONE
- 1.south
- whether or not the projection is defined for the southern hemisperepublic static double[] getProjectionParams(int zoneIndex, boolean south)
zoneIndex
- the zone index in the range 0 to MAX_UTM_ZONE
- 1.south
- whether or not the projection is defined for the southern hemisperepublic static MapProjection getSuitableProjection(GeoPos geoPos)
geoPos
- a geodetic coordinatepublic static double getCentralMeridian(int zoneIndex)
zoneIndex
- the zone index in the range 0 to MAX_UTM_ZONE
- 1.-180
to +180
degree.public static int getZoneIndex(float longitude)
longitude
- the longitude in the range -180
to +180
degrees.MAX_UTM_ZONE
- 1.public static void registerProjections()
MapProjectionRegistry
. The projection names
have the form "UTM Zone 1" to "UTM Zone 64" for the northern hemisphere and "UTM Zone 1, South" to "UTM Zone 64,
South" for the southern. Also contained is the special auto-UTM projection with the name AUTO_PROJECTION_NAME
.Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.