|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.geom.coords.TMCoord
public class TMCoord
This class holds a set of Transverse Mercator coordinates along with the corresponding latitude and longitude.
TMCoordConverter
Constructor Summary | |
---|---|
TMCoord(Angle latitude,
Angle longitude,
double easting,
double northing,
Angle originLatitude,
Angle centralMeridian,
double falseEasting,
double falseNorthing,
double scale)
Create an arbitrary set of Transverse Mercator coordinates with the given values. |
Method Summary | |
---|---|
static TMCoord |
fromLatLon(Angle latitude,
Angle longitude,
Globe globe,
Angle originLatitude,
Angle centralMeridian,
double falseEasting,
double falseNorthing,
double scale)
Create a set of Transverse Mercator coordinates from a pair of latitude and longitude, for the given Globe and projection parameters. |
static TMCoord |
fromTM(double easting,
double northing,
Globe globe,
Angle originLatitude,
Angle centralMeridian,
double falseEasting,
double falseNorthing,
double scale)
Create a set of Transverse Mercator coordinates for the given Globe ,
easting, northing and projection parameters. |
Angle |
getCentralMeridian()
|
double |
getEasting()
|
double |
getFalseEasting()
|
double |
getFalseNorthing()
|
Angle |
getLatitude()
|
Angle |
getLongitude()
|
double |
getNorthing()
|
Angle |
getOriginLatitude()
|
double |
getScale()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TMCoord(Angle latitude, Angle longitude, double easting, double northing, Angle originLatitude, Angle centralMeridian, double falseEasting, double falseNorthing, double scale)
latitude
- the latitude Angle
.longitude
- the longitude Angle
.easting
- the easting distance value in meters.northing
- the northing distance value in meters.originLatitude
- the origin latitude Angle
.centralMeridian
- the central meridian longitude Angle
.falseEasting
- easting value at the center of the projection in meters.falseNorthing
- northing value at the center of the projection in meters.scale
- scaling factor.
IllegalArgumentException
- if latitude
, longitude
, originLatitude
or centralMeridian
is null.Method Detail |
---|
public static TMCoord fromLatLon(Angle latitude, Angle longitude, Globe globe, Angle originLatitude, Angle centralMeridian, double falseEasting, double falseNorthing, double scale)
Globe
and projection parameters.
latitude
- the latitude Angle
.longitude
- the longitude Angle
.globe
- the Globe
- can be null (will use WGS84).originLatitude
- the origin latitude Angle
.centralMeridian
- the central meridian longitude Angle
.falseEasting
- easting value at the center of the projection in meters.falseNorthing
- northing value at the center of the projection in meters.scale
- scaling factor.
TMCoord
.
IllegalArgumentException
- if latitude
or longitude
is null,
or the conversion to TM coordinates fails. If the globe is null conversion will default
to using WGS84.public static TMCoord fromTM(double easting, double northing, Globe globe, Angle originLatitude, Angle centralMeridian, double falseEasting, double falseNorthing, double scale)
Globe
,
easting, northing and projection parameters.
easting
- the easting distance value in meters.northing
- the northing distance value in meters.globe
- the Globe
- can be null (will use WGS84).originLatitude
- the origin latitude Angle
.centralMeridian
- the central meridian longitude Angle
.falseEasting
- easting value at the center of the projection in meters.falseNorthing
- northing value at the center of the projection in meters.scale
- scaling factor.
TMCoord
.
IllegalArgumentException
- if originLatitude
or centralMeridian
is null, or the conversion to geodetic coordinates fails. If the globe is null conversion will default
to using WGS84.public Angle getCentralMeridian()
public double getEasting()
public double getFalseEasting()
public double getFalseNorthing()
public Angle getLatitude()
public Angle getLongitude()
public double getNorthing()
public Angle getOriginLatitude()
public double getScale()
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |