|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.proj.Projection
Stores information about a map projection. Includes projection type, zone (where relevant) and ellipsoid used.
Field Summary | |
static int |
LAT_LONG
Indicates lat/long coordinate system. |
static int |
OSGB
Indicates Ordnance Survey National Grid map projection. |
static int |
STATE_PLANE
Indicates State Plane map projection. |
static int |
SWISS
Indicates Swiss grid map projection. |
static int |
TIME_SPACE
Indicates Mayhew travel time-space projection. |
static int |
UNDEFINED
Indicates map projection is undefined. |
static int |
UTM
Indicates UTM map projection. |
Constructor Summary | |
Projection()
Creates an undefined projection. |
|
Projection(int type)
Creates a projection of the given type with no ellipsoid defined. |
|
Projection(int type,
Ellipsoid ellipsoid)
Stores the given projection information. |
|
Projection(Projection oldProjection)
Creates a copy of the given projection. |
Method Summary | |
Ellipsoid |
getEllipsoid()
Reports the type of ellipsoid stored. |
static String |
getName(int projType)
Reports the name of the given projection type. |
int |
getType()
Reports the type of projection stored. |
String |
getZone()
Reports the full UTM zone of the given (lat,lng) location. |
char |
getZoneLetter()
Reports the UTM zone letter of the given (lat,lng) location. |
int |
getZoneNumber()
Reports the UTM zone number of the given (lat,lng) location. |
void |
setZone(int zoneNumber,
char zoneLetter)
Sets the zone number and letter for a UTM projection. |
void |
setZoneNumber(int zoneNumber)
Sets the zone number for a UTM projection. |
String |
toString()
Returns a human-readable description of this projection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNDEFINED
public static final int LAT_LONG
public static final int UTM
public static final int OSGB
public static final int STATE_PLANE
public static final int SWISS
public static final int TIME_SPACE
Constructor Detail |
public Projection()
public Projection(int type)
type
- Type of projection.public Projection(Projection oldProjection)
oldProjection
- Projection information to copy.public Projection(int type, Ellipsoid ellipsoid)
type
- Type of projection.ellipsoid
- Type of ellipsoid used in projection.Method Detail |
public int getType()
public Ellipsoid getEllipsoid()
public void setZone(int zoneNumber, char zoneLetter)
zoneNumber
- Zone number to use.zoneLetter
- Zone letter to use.public void setZoneNumber(int zoneNumber)
zoneNumber
- Zone number to use.public int getZoneNumber()
public char getZoneLetter()
public String getZone()
public String toString()
public static String getName(int projType)
projType
- Type of projection to name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |