|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.BaseSRF
public abstract class BaseSRF
The BaseSRF abstract class is the base class for all SRFs.
BaseSRF_2D, BaseSRF_3D| Field Summary | |
|---|---|
protected SRM_HSR_Code |
_hsr
|
protected java.util.HashMap |
_internalSRFs
|
protected CacheManager |
_myOpSeq
|
protected SRM_SRFT_Code |
_mySrftCode
|
protected SRM_ORM_Code |
_orm
|
| Constructor Summary | |
|---|---|
BaseSRF()
|
|
| Method Summary | |
|---|---|
static double |
calculateEuclideanDistance(Coord coord1,
Coord coord2)
Returns the euclidean distance between two coordinates. |
SRM_Coordinate_Valid_Region_Code |
changeCoordinateSRF(Coord src,
Coord tgt)
Changes a coordinate's values to this SRF. |
SRM_Coordinate_Valid_Region_Code |
checkCoordinate(Coord src)
Check a coordinate in this SRF. |
static BaseSRF |
createSRFSetMember(SRM_SRFS_Code srf_set,
int set_member,
SRM_ORM_Code orm,
SRM_HSR_Code hsr)
Creates an SRF from a SRF set code, a set member code specific to that set, and an ORM code. |
static BaseSRF |
createStandardSRF(SRM_SRF_Code srf_code)
Creates a Standard SRF from its SRF code. |
SRM_HSR_Code |
get_hsr()
Returns this SRF's Hsr code. |
SRM_ORM_Code |
get_orm()
Returns this SRF's Object Reference Model code. |
SRM_SRF_Code |
getSRFCode()
Returns this pre-defined ("standard") SRF code. |
SRM_SRFS_Code |
getSRFSetCode()
Returns this SRF's Set code. |
int |
getSRFSetMemberCode()
Returns this SRF's Set member code. |
SRM_SRFT_Code |
getSRFTemplateCode()
Returns this SRF's Template code. |
abstract boolean |
isEqual(BaseSRF srf)
|
BaseSRF |
makeClone()
Returns the shallow copy of this object instance. |
protected void |
setSrfCode(SRM_SRF_Code srfCode)
|
protected void |
setSrfSetCode(SRM_SRFS_Code srfSetCode)
|
protected void |
setSrfSetMemberCode(int srfSetMemberCode)
|
abstract java.lang.String |
toString()
Returns a string representation of this SRF. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SRM_ORM_Code _orm
protected SRM_HSR_Code _hsr
protected SRM_SRFT_Code _mySrftCode
protected CacheManager _myOpSeq
protected java.util.HashMap _internalSRFs
| Constructor Detail |
|---|
public BaseSRF()
| Method Detail |
|---|
public static BaseSRF createStandardSRF(SRM_SRF_Code srf_code)
throws SrmException
srf_code - in: the code for a standard SRF to create
SrmExceptioncreateStandardSRF(), SRM_SRF_Code
A sample code to create a British National Grid (BNG) SRF is a follows:
public static BaseSRF createSRFSetMember(SRM_SRFS_Code srf_set,
int set_member,
SRM_ORM_Code orm,
SRM_HSR_Code hsr)
throws SrmException
srf_set - in: the code for an SRF setset_member - in: the code for an SRF set member.orm - in: the ORM code associated with the created SRFhsr - in: the HSR transformation associated with the created SRF
SrmExceptioncreateSRFSetMember(), SRM_SRFS_Code, SRM_SSM_Code
A sample code to create a UTM SRF corresponding to Zone 12 Southern hemisphere based
on WGS 1984 with Identity transformation is as follows:public SRM_SRF_Code getSRFCode()
createStandardSRF()public SRM_SRFT_Code getSRFTemplateCode()
createStandardSRF()public SRM_SRFS_Code getSRFSetCode()
createSRFSetMember()public int getSRFSetMemberCode()
createSRFSetMember()public SRM_ORM_Code get_orm()
public SRM_HSR_Code get_hsr()
public SRM_Coordinate_Valid_Region_Code changeCoordinateSRF(Coord src,
Coord tgt)
throws SrmException
src - in: the source coordinate in some other SRFtgt - in out: the target coordinate in this SRF
SrmException
public SRM_Coordinate_Valid_Region_Code checkCoordinate(Coord src)
throws SrmException
src - in: the source coordinate in some other SRF
SrmException
public static double calculateEuclideanDistance(Coord coord1,
Coord coord2)
throws SrmException
coord1 - in: a coordinate in some SRFcoord2 - in: a coordinate in some SRF
SrmExceptionpublic abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean isEqual(BaseSRF srf)
public BaseSRF makeClone()
throws SrmException
SrmExceptionprotected void setSrfCode(SRM_SRF_Code srfCode)
protected void setSrfSetCode(SRM_SRFS_Code srfSetCode)
protected void setSrfSetMemberCode(int srfSetMemberCode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||