|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.cs.CRS
public class CRS
Represents the name to a CRS that is not necessarily resolved or resolvable.
Their are two aspects that this class takes care of:
CRSRegistry. However, for some
operations this is not a necessarily a problem, e.g. a GML document may be read and transformed into
Feature and Geometry objects.
| Field Summary | |
|---|---|
static CRS |
EPSG_4326
The commonly used geographic 'EPSG:4326', with axis order X, Y. |
| Constructor Summary | |
|---|---|
CRS(CoordinateSystem crs)
Creates a new CRS instance with the given coordinate system. |
|
CRS(java.io.File prj)
Try to read a crs from the given (prj) file which is supposed to define a WKT definition. |
|
CRS(java.lang.String crsName)
Creates a new CRS instance with a coordinate reference system name. |
|
CRS(java.lang.String crsName,
boolean forceXY)
Creates a new CRS instance with a coordinate reference system name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
double[] |
getAreaOfUse()
Returns the area of use, i.e. the domain where this CRSIdentifiable is valid. |
java.lang.String |
getName()
Returns the string that identifies the CRS. |
CoordinateSystem |
getWrappedCRS()
Returns the corresponding CRS object. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CRS EPSG_4326
| Constructor Detail |
|---|
public CRS(java.lang.String crsName)
CRS instance with a coordinate reference system name.
crsName - name of the crs (identification string) or null
public CRS(java.lang.String crsName,
boolean forceXY)
CRS instance with a coordinate reference system name.
crsName - name of the crs (identification string) or nullforceXY - true if the axis order of the coordinate system should be x/y (EAST/NORTH; WEST/SOUTH); false id the
defined axis order should be takenpublic CRS(CoordinateSystem crs)
CRS instance with the given coordinate system.
crs -
public CRS(java.io.File prj)
throws java.io.IOException
prj - a file containing a wkt representation of the coordinate system.
java.io.IOException| Method Detail |
|---|
public java.lang.String getName()
CRS.
public CoordinateSystem getWrappedCRS()
throws UnknownCRSException
CRS object.
UnknownCRSExceptionpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public double[] getAreaOfUse()
throws UnknownCRSException
CRSIdentifiable is valid.
null
(-180,-90,180,90) if no such information is available
UnknownCRSExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||