public class IlvUniversalTransverseMercatorProjection extends IlvTransverseMercatorProjection
CONFORMAL, EQUAL_AREA, NONE
Constructor and Description |
---|
IlvUniversalTransverseMercatorProjection()
Creates an instance of the class
IlvUniversalTransverseMercatorProjection . |
IlvUniversalTransverseMercatorProjection(double lon)
Creates an instance of the
IlvUniverseTransverseMercatorProjection
and specifies the central meridian. |
IlvUniversalTransverseMercatorProjection(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
IlvUniversalTransverseMercatorProjection(IlvUniversalTransverseMercatorProjection source)
Creates a new
IlvUniversalTransverseMercatorProjection
by copying an existing one. |
IlvUniversalTransverseMercatorProjection(int zone)
Creates an instance of the class
IlvUniversalTransverseMercatorProjection and specifies
the UTM zone. |
Modifier and Type | Method and Description |
---|---|
IlvProjection |
copy()
Copies the projection.
|
int |
getZone()
Returns the UTM zone to which the projection applies.
|
boolean |
isSouth()
Returns true if the projection is set for applications portraying the southern
hemisphere.
|
void |
setLLCenter(double lon,
double lat)
Specifies the central meridian of the projection.
|
void |
setScaleFactor(double k0)
Does nothing.
|
void |
setSouth(boolean south)
In applications portraying the southern hemisphere,
this function should be called with a true argument.
|
void |
setZone(int zone)
Sets the UTM zone to which the projection applies.
|
String |
toString()
Converts the projection to a string with Evenden's format.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
eForward, eInverse, getScaleFactor, setEllipsoid, sForward, sInverse
addDescription, adjustLongitude, equals, forward, forward, getCentralMeridian, getCentralParallel, getDatum, getEllipsoid, getFalseEasting, getFalseNorthing, GetProjection, getProperty, getUnit, getXYOffset, inverse, inverse, inverse, isEllipsoidEnabled, isGeocentric, isInverseEnabled, isUsingLongitudeReduction, setCentralMeridian, setCentralParallel, setDatum, setFalseEasting, setFalseNorthing, setGeocentric, setUnit, setUsingLongitudeReduction, setXYOffset
public IlvUniversalTransverseMercatorProjection()
IlvUniversalTransverseMercatorProjection
.
The UTM zone is set to 30.
The ellipsoid is set to the WGS84 ellipsoid.public IlvUniversalTransverseMercatorProjection(int zone) throws IlvBadProjectionParameter
IlvUniversalTransverseMercatorProjection
and specifies
the UTM zone.
The ellipsoid is set to the WGS84 ellipsoid.zone
- the UTM zone to which the projection applies.IlvBadProjectionParameter
- if an invalid UTM zone is specified.public IlvUniversalTransverseMercatorProjection(double lon)
IlvUniverseTransverseMercatorProjection
and specifies the central meridian.
The ellipsoid is set to the WGS84 ellipsoid.lon
- the zone will be adjusted to the nearest UTM zone at the
specified longitude.public IlvUniversalTransverseMercatorProjection(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- the input stream.IlvReadFileException
- if the format is not correct.public IlvUniversalTransverseMercatorProjection(IlvUniversalTransverseMercatorProjection source)
IlvUniversalTransverseMercatorProjection
by copying an existing one.source
- the projection that is copied.public IlvProjection copy()
copy
in class IlvTransverseMercatorProjection
public void setSouth(boolean south)
south
- if true, a false northing of 10 000 000 m is addedpublic final boolean isSouth()
setSouth(boolean)
public void setZone(int zone) throws IlvBadProjectionParameter
zone
- the zone index (between 1 and 60)IlvBadProjectionParameter
- if an invalid UTM zone is specified.public void setLLCenter(double lon, double lat)
setLLCenter
in class IlvProjection
lon
- the central meridian in radianslat
- ignored. The central latitude of an UTM projection is always 0.IlvProjectionUtil.DegreeToRadian(double)
,
IlvProjectionUtil.DMSToRadian(java.lang.String)
public int getZone()
setZone(int)
public void setScaleFactor(double k0)
setScaleFactor
in class IlvTransverseMercatorProjection
k0
- ignoredpublic void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvTransverseMercatorProjection
stream
- the output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public String toString()
toString
in class IlvTransverseMercatorProjection
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.