|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.proj.Projection
public class Projection
Stores information about a map projection. Includes projection type, zone (where relevant) and ellipsoid used.
Field Summary | |
---|---|
static int |
BC_ALBERS
British Columbia Albers Standard map projection. |
static int |
FRENCH_NTF
French NTF map projection (Lambert conformal conic). |
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 |
US_ALL_ALBERS
US all states Albers projection. |
static int |
US_CONT_ALBERS
US conterminous states Albers projection. |
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 ( WGS84 etc.). |
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 zone of the projection. |
char |
getZoneLetter()
Reports the UTM zone letter. |
int |
getZoneNumber()
Reports the projection zone number. |
void |
setEllipsoid(Ellipsoid ellipsoid)
Sets the ellipsoid associated with the projection. |
void |
setZone(int zoneNumber,
char zoneLetter)
Sets the zone number and letter for a projection that uses zones (such as UTM). |
void |
setZoneNumber(int zoneNumber)
Sets the zone number for a projection that uses zones (such as UTM). |
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 BC_ALBERS
public static final int FRENCH_NTF
public static final int US_CONT_ALBERS
public static final int US_ALL_ALBERS
public static final int TIME_SPACE
Constructor Detail |
---|
public Projection()
public Projection(int type)
type
- Type of projection (LAT_LONG
, UTM
etc.).public Projection(Projection oldProjection)
oldProjection
- Projection information to copy.public Projection(int type, Ellipsoid ellipsoid)
type
- Type of projection (LAT_LONG
, UTM
etc.).ellipsoid
- Type of ellipsoid used in projection (WGS84
etc.).Method Detail |
---|
public int getType()
LAT_LONG
, UTM
etc.).public Ellipsoid getEllipsoid()
WGS84
etc.).
public void setEllipsoid(Ellipsoid ellipsoid)
ellipsoid
- Ellipsoid associated with the projection (WGS84
etc.).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()
toString
in class Object
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 |