Class UTM
java.lang.Object
org.esa.snap.core.dataop.maptransf.UTM
Deprecated.
since BEAM 4.7, use geotools instead.
The
UTM class provides useful, static methods for dealing with the UTM map-projection.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.The name of the automatic zone projection.static final intDeprecated.The maximum UTM zone number.static final intDeprecated.The maximum zone index.static final intDeprecated.The minimum zone index. -
Method Summary
Modifier and TypeMethodDescriptionstatic UTMProjectionDeprecated.Creates an automatic-zone UTM map projection.static UTMProjectioncreateProjection(int zoneIndex, boolean south) Deprecated.Creates an UTM map projection for the specified parameters.static UTMProjectioncreateProjection(String projName, int zoneIndex, boolean south) Deprecated.Creates a predefined UTM map projection for the specified parameters.static doublegetCentralMeridian(int zoneIndex) Deprecated.Computes the central meridian from the given UTM zone index.static StringgetProjectionName(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 MapProjectiongetSuitableProjection(GeoPos geoPos) Deprecated.Gets the UTM projection suitable for the given geodetic coordinate.static intgetZoneIndex(double longitude) Deprecated.Computes the UTM zone index from the longitude value.static booleanisAutoZoneProjection(MapProjection mapProjection) Deprecated.Checks whether or not the given map projection is an automatic UTM projection.static voidDeprecated.Registers all possible UTM projections in the.MapProjectionRegistry
-
Field Details
-
AUTO_PROJECTION_NAME
Deprecated.The name of the automatic zone projection.- See Also:
-
MIN_UTM_ZONE_INDEX
public static final int MIN_UTM_ZONE_INDEXDeprecated.The minimum zone index.- See Also:
-
MAX_UTM_ZONE_INDEX
public static final int MAX_UTM_ZONE_INDEXDeprecated.The maximum zone index.- See Also:
-
MAX_UTM_ZONE
public static final int MAX_UTM_ZONEDeprecated.The maximum UTM zone number.- See Also:
-
-
Method Details
-
isAutoZoneProjection
Deprecated.Checks whether or not the given map projection is an automatic UTM projection.- Parameters:
mapProjection- the map projection, must not benull- Returns:
trueif so
-
createAutoZoneProjection
Deprecated.Creates an automatic-zone UTM map projection.- Returns:
- an automatic-zone UTM map projection
-
createProjection
Deprecated.Creates an UTM map projection for the specified parameters.- Parameters:
zoneIndex- the zone index in the range 0 toMAX_UTM_ZONE- 1.south- whether or not the projection is defined for the southern hemispere- Returns:
- an UTM map projection
- See Also:
-
createProjection
Deprecated.Creates a predefined UTM map projection for the specified parameters.- Parameters:
projName- a name for the projection, e.g."UTM 33"zoneIndex- the zone index in the range 0 toMAX_UTM_ZONE- 1.south- whether or not the projection is defined for the southern hemispere- Returns:
- an UTM map projection
-
getProjectionName
Deprecated.Gets a suitable name for the projection given by the specified UTM projection parameters.- Parameters:
zoneIndex- the zone index in the range 0 toMAX_UTM_ZONE- 1.south- whether or not the projection is defined for the southern hemispere- Returns:
- a suitable projection name
-
getProjectionParams
public static double[] getProjectionParams(int zoneIndex, boolean south) Deprecated.Gets the UTM projection parameters for the transverse mercator transformation.- Parameters:
zoneIndex- the zone index in the range 0 toMAX_UTM_ZONE- 1.south- whether or not the projection is defined for the southern hemispere- Returns:
- the UTM projection parameters
-
getSuitableProjection
Deprecated.Gets the UTM projection suitable for the given geodetic coordinate.- Parameters:
geoPos- a geodetic coordinate- Returns:
- a suitable UTM projection
-
getCentralMeridian
public static double getCentralMeridian(int zoneIndex) Deprecated.Computes the central meridian from the given UTM zone index.- Parameters:
zoneIndex- the zone index in the range 0 toMAX_UTM_ZONE- 1.- Returns:
- the central meridian in the range
-180to+180degree.
-
getZoneIndex
public static int getZoneIndex(double longitude) Deprecated.Computes the UTM zone index from the longitude value.- Parameters:
longitude- the longitude in the range-180to+180degrees.- Returns:
- the zone index in the range 0 to
MAX_UTM_ZONE- 1.
-
registerProjections
public static void registerProjections()Deprecated.Registers all possible UTM projections in the. 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 nameMapProjectionRegistry.AUTO_PROJECTION_NAME
-