public abstract class BaseSRF extends Object implements Cloneable
BaseSRF_2D, BaseSRF_3D| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,BaseSRF> |
_internalSRFs |
protected SRM_CS_Code |
_myCsCode |
protected CacheManager |
_myOpSeq |
protected SRM_SRFT_Code |
_mySrftCode |
protected SRM_ORM_Code |
_orm |
protected SRM_RT_Code |
_rt |
| Constructor and Description |
|---|
BaseSRF() |
| Modifier and Type | Method and Description |
|---|---|
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 for valid region.
|
static BaseSRF |
createSRFSetMember(SRM_SRFS_Code srf_set,
SRM_SRFSM_Code set_member,
SRM_ORM_Code orm,
SRM_RT_Code rt)
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,
SRM_RT_Code rt_code)
Creates a Standard SRF from its SRF code.
|
SRM_ORM_Code |
get_orm()
Deprecated.
As of SRM 4.1.2, replaced by getOrm()
|
SRM_RT_Code |
get_rt()
Deprecated.
As of SRM 4.1.2, replaced by getRt()
|
double |
getA()
Returns this SRF's major semi-axis value (A).
|
SRM_CS_Code |
getCSCode()
Returns this SRF's CS Code.
|
double |
getF()
Returns this SRF's flattening value (F).
|
static String |
getImplVerInfo()
Returns the string for this version of SRM Java implementation.
|
SRM_ORM_Code |
getOrm()
Returns this SRF's Object Reference Model code.
|
SRM_RT_Code |
getRt()
Returns this SRF's RT code.
|
SRM_SRF_Code |
getSRFCode()
Returns this pre-defined ("standard") SRF code.
|
SRM_SRFS_Code |
getSRFSetCode()
Returns this SRF's Set code.
|
SRM_SRFSM_Code |
getSRFSetMemberCode()
Returns this SRF's Set member code.
|
SRM_SRFT_Code |
getSRFTemplateCode()
Returns this SRF's Template code.
|
protected static double[] |
interimConv(Coord src_coord,
SRM_SRFT_Code tgt_srft) |
abstract boolean |
isEqual(BaseSRF srf) |
BaseSRF |
makeClone()
Returns the shallow copy of this object instance.
|
static boolean |
querySRFTSupport(SRM_SRFT_Code srft_code)
Queries for the SRFT support by the implementation.
|
protected void |
setSrfCode(SRM_SRF_Code srfCode) |
protected void |
setSrfSetCode(SRM_SRFS_Code srfSetCode) |
protected void |
setSrfSetMemberCode(SRM_SRFSM_Code srfSetMemberCode) |
String |
toString()
Returns a string representation of this SRF.
|
protected SRM_ORM_Code _orm
protected SRM_RT_Code _rt
protected SRM_SRFT_Code _mySrftCode
protected SRM_CS_Code _myCsCode
protected CacheManager _myOpSeq
public static BaseSRF createStandardSRF(SRM_SRF_Code srf_code, SRM_RT_Code rt_code) throws SrmException
srf_code - in: the code for a standard SRF to creatert_code - in: the RT code to use in the created SRFThis - method throws SrmExceptionSrmExceptioncreateStandardSRF(), SRM_SRF_Code
A sample code to create a British National Grid Airy SRF is as follows:public static BaseSRF createSRFSetMember(SRM_SRFS_Code srf_set, SRM_SRFSM_Code set_member, SRM_ORM_Code orm, SRM_RT_Code rt) 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 SRFrt - in: the RT transformation associated with the created SRFSrmExceptioncreateSRFSetMember(), 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 SRM_SRFSM_Code getSRFSetMemberCode()
createSRFSetMember()public SRM_CS_Code getCSCode()
public SRM_ORM_Code get_orm()
getOrm()public SRM_ORM_Code getOrm()
public SRM_RT_Code get_rt()
getRt()public SRM_RT_Code getRt()
public double getA()
public double getF()
public static boolean querySRFTSupport(SRM_SRFT_Code srft_code)
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 SRFSrmExceptionpublic SRM_Coordinate_Valid_Region_Code checkCoordinate(Coord src) throws SrmException
src - in: the source coordinate in some other SRFSrmExceptionpublic static double calculateEuclideanDistance(Coord coord1, Coord coord2) throws SrmException
coord1 - in: a coordinate in some SRFcoord2 - in: a coordinate in some SRFSrmExceptionpublic static String getImplVerInfo()
public String toString()
public 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(SRM_SRFSM_Code srfSetMemberCode)
protected static double[] interimConv(Coord src_coord, SRM_SRFT_Code tgt_srft) throws SrmException
SrmExceptionCopyright © 2013 SEDRIS. All Rights Reserved.