|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ebgeo.maprequest.cs.MRProjection
A class to model a map projection. e.g. UTM.
Nested Class Summary | |
class |
MRProjection.ProjectionFileFilter
Helper class to find *_projection.txt files. |
Field Summary | |
static String |
LAT_LONG
|
protected String |
wkt
|
Constructor Summary | |
MRProjection()
Creates a new instance of MRProjection |
Method Summary | |
String |
getHemisphere()
Getter for property hemisphere. |
MRProjection |
getInstance(String name)
Get an instance of a projection given a well known name. |
String |
getName()
Get the well known name for this projection. |
String |
getName(String realm)
Get the name of this projection in a particular realm. |
String |
getWkt()
Get the Open GIS Well Known Text format of this projection. |
String |
getZone()
Return the zone. |
String |
getZone(CoordinatePoint point)
Return the zone for an arbitrray point. |
boolean |
hasNameForRealm(String realm)
Check if this projection defines a name for this realm. |
boolean |
isKnown()
Check if this datum is known. |
boolean |
isLatLong()
Check if this projection is a standard latitude/longitude projection. |
void |
setHemisphere(String hemisphere)
Setter for property hemisphere. |
protected void |
setKnown(boolean known)
|
void |
setName(String name)
Set the well known name for this projection. |
void |
setName(String name,
String realm)
Set the name for this projection for a particular realm. |
void |
setWkt(String wkt)
Set the Open GIS Well Known Text format for this projection. |
void |
setZone(String zone)
Set the zone for this projection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String wkt
public static String LAT_LONG
Constructor Detail |
public MRProjection()
Method Detail |
public MRProjection getInstance(String name)
name
- The well known name of the projection. If the name is not
recognised then a warning is displayed, and an object that does not
return a valid WKT is returned.
public String getName()
getName(String)
public String getName(String realm)
realm
- The realm for which you want to know the name of this
projection.
getName()
public boolean hasNameForRealm(String realm)
getName(String)
returns the well known
name if the projection does not have a name for this realm.
realm
- The realm for which you want to check if this projection
knows about.
public void setName(String name)
public void setName(String name, String realm)
name
- The name that this projection is known by for the realm.realm
- The realm.public String getWkt()
public void setWkt(String wkt)
public boolean isLatLong()
public String getZone()
public String getZone(CoordinatePoint point)
point
- The point at which you want to know the zone for.public void setZone(String zone)
public String getHemisphere()
public void setHemisphere(String hemisphere)
hemisphere
- New value of property hemisphere.public boolean isKnown()
protected void setKnown(boolean known)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |