|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.tom.Reference<T>
org.deegree.cs.refs.CRSResourceRef<ICRS>
org.deegree.cs.refs.coordinatesystem.CRSRef
public class CRSRef
Represents a CRSRef that is not necessarily resolved or resolvable.
Their are two aspects that this class takes care of:
CRSStore. 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.
| Constructor Summary | |
|---|---|
CRSRef(ReferenceResolver resolver,
String uri,
String baseURL)
Creates a new CRSRef instance. |
|
CRSRef(ReferenceResolver resolver,
String uri,
String baseURL,
boolean forceXY)
Creates a new CRSRef instance with a coordinate reference system name. |
|
| Method Summary | |
|---|---|
javax.vecmath.Point3d |
convertToAxis(javax.vecmath.Point3d coordinates,
IUnit[] units,
boolean invert)
Converts the given coordinates in given to the unit of the respective axis. |
boolean |
equals(Object obj)
|
boolean |
equalsWithFlippedAxis(Object other)
TODO: this methode should become redundant with the reworked identifer concept! |
String |
getAlias()
|
String |
getAreaOfUse()
|
double[] |
getAreaOfUseBBox()
Returns the area of use, i.e. the domain where this CRSIdentifiable is valid. |
IAxis[] |
getAxis()
|
IDatum |
getDatum()
|
int |
getDimension()
|
Transformation |
getDirectTransformation(ICRS targetCRS)
|
int |
getEasting()
Return the axis index associated with an easting value, if the axis could not be determined Axis.AO_OTHER
0 will be returned. |
IGeodeticDatum |
getGeodeticDatum()
|
String |
getName()
Returns the string that identifies the CRSRef which is the URI of the Reference. |
int |
getNorthing()
Return the axis index associated with a northing value, if the axis could not be determined (e.g not is Axis.AO_NORTH Axis.AO_SOUTH or Axis.AO_UP or Axis.AO_DOWN) 1 will be returned. |
ICRS |
getReferencedObject()
Returns the referenced Object instance (may trigger resolving and fetching it). |
List<Transformation> |
getTransformations()
|
CRS.CRSType |
getType()
|
IUnit[] |
getUnits()
|
double[] |
getValidDomain()
Returns the approximate domain of validity of this coordinate system. |
boolean |
hasDirectTransformation(ICRS targetCRS)
|
int |
hashCode()
|
boolean |
isXYForced()
|
String |
toString()
|
| Methods inherited from class org.deegree.cs.refs.CRSResourceRef |
|---|
addAreaOfUse, addName, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
| Methods inherited from class org.deegree.commons.tom.Reference |
|---|
getId, getURI, isLocal, isResolved, resolve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.cs.CRSResource |
|---|
addAreaOfUse, addName, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
| Methods inherited from interface org.deegree.commons.tom.Object |
|---|
getId |
| Constructor Detail |
|---|
public CRSRef(ReferenceResolver resolver,
String uri,
String baseURL)
CRSRef instance.
resolver - used for resolving the reference, must not be nulluri - the object's uri, must not be nullbaseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
public CRSRef(ReferenceResolver resolver,
String uri,
String baseURL,
boolean forceXY)
CRSRef instance with a coordinate reference system name.
resolver - used for resolving the reference, must not be nulluri - the object's uri, must not be nullbaseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)forceXY - 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 taken| Method Detail |
|---|
public String getName()
CRSRef which is the URI of the Reference.
getName in interface CRSResourcegetName in class CRSResourceRef<ICRS>public String getAlias()
getAlias in interface ICRSpublic boolean equals(Object obj)
equals in class CRSResourceRef<ICRS>public int hashCode()
hashCode in class Objectpublic String getAreaOfUse()
getAreaOfUse in interface CRSResourcegetAreaOfUse in class CRSResourceRef<ICRS>null if no areasOfUse were given.public String toString()
toString in class Objectpublic IAxis[] getAxis()
getAxis in interface ICRSpublic IGeodeticDatum getGeodeticDatum()
getGeodeticDatum in interface ICRSnull if the datum was not a Geodetic one.public IDatum getDatum()
getDatum in interface ICRSpublic IUnit[] getUnits()
getUnits in interface ICRSpublic boolean hasDirectTransformation(ICRS targetCRS)
hasDirectTransformation in interface ICRStargetCRS - to get the alternative Transformation for.
public Transformation getDirectTransformation(ICRS targetCRS)
getDirectTransformation in interface ICRStargetCRS - to get the alternative transformation for.
null otherwise.
public javax.vecmath.Point3d convertToAxis(javax.vecmath.Point3d coordinates,
IUnit[] units,
boolean invert)
ICRS
convertToAxis in interface ICRScoordinates - to convert to.units - in which the coordinates were given.invert - if the operation should be inverted, e.g. the coordinates are given in the axis units and should be
converted to the given units.
public List<Transformation> getTransformations()
getTransformations in interface ICRSpublic int getEasting()
ICRSAxis.AO_OTHER
0 will be returned.
getEasting in interface ICRSpublic int getNorthing()
ICRSAxis.AO_NORTH Axis.AO_SOUTH or Axis.AO_UP or Axis.AO_DOWN) 1 will be returned.
getNorthing in interface ICRSpublic double[] getValidDomain()
ICRS
getValidDomain in interface ICRSnull if the valid
domain could not be determinedpublic double[] getAreaOfUseBBox()
CRSResourceCRSIdentifiable is valid.
getAreaOfUseBBox in interface CRSResourcegetAreaOfUseBBox in class CRSResourceRef<ICRS>null
(-180,-90,180,90) if no such information is availablepublic int getDimension()
getDimension in interface ICRSpublic CRS.CRSType getType()
getType in interface ICRSpublic boolean isXYForced()
public ICRS getReferencedObject()
throws ReferenceResolvingException
ReferenceObject instance (may trigger resolving and fetching it).
getReferencedObject in class Reference<ICRS>Object instance
ReferenceResolvingException - if the reference cannot be resolvedpublic boolean equalsWithFlippedAxis(Object other)
ICRS
equalsWithFlippedAxis in interface ICRS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||