SAP ABAP Class CL_GIS_GEOCOD_CAL (a variety of calculations for latitude/longitude points)
Hierarchy
SAP_BS_FND (Software Component) SAP Business Suite Foundation
   CA-EPT-GIS (Application Component) Geographical Information System
     BS_GIS_CORE (Package) GIS: Package for Services
Properties
Class CL_GIS_GEOCOD_CAL  
Short Description a variety of calculations for latitude/longitude points    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package BS_GIS_CORE   GIS: Package for Services 
Created 20100817   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_GIS_GEOCOD_CAL has no forward declaration.
Interfaces
Class CL_GIS_GEOCOD_CAL has no interface implemented.
Friends
Class CL_GIS_GEOCOD_CAL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 PI Constant Public Type reference (TYPE) F '3.14159265' 20100817
2 PI2 Constant Public Type reference (TYPE) F '6.28318531' 20100823
3 PI3 Constant Public Type reference (TYPE) F '9.42477796' 20100823
4 RADIUS Constant Public Type reference (TYPE) F '6371.009' 20100817
Methods
# Method Level Visibility Method type Description Created on
1 ATAN2 Static method Public Method Calculate arctangent 20100818
2 CONVERT_DEG_TO_RAD Static method Public Method Convert Degrees to Radians 20100817
3 CONVERT_DM_TO_KM Static method Public Method Convert Decimeters to Kilometers 20100927
4 CONVERT_FT_TO_KM Static method Public Method Convert Feet /Foot to Kilometers 20100927
5 CONVERT_KM_TO_MI Static method Public Method Convert Kilometers to Miles 20100927
6 CONVERT_MI_TO_KM Static method Public Method Convert Miles to Kilometers 20100927
7 CONVERT_M_TO_KM Static method Public Method Convert Meters to Kilometers 20100927
8 CONVERT_RAD_TO_DEG Static method Public Method Convert Radians to Degrees 20100817
9 CONVERT_RAD_TO_DEG_FLOAT Static method Public Method Convert Radians to Degrees Output in Float 20100921
10 CONVERT_YD_TO_KM Static method Public Method Convert Yards to Kilometers 20100927
11 GET_BRNG_GIVN_LAT_LON Static method Public Method Calculate bearing 20100818
12 GET_DIS_BW_TWO_POINTS Static method Public Method Calculate the distance between two points . 20100923
13 GET_DIS_GIVN_BRNG_LAT_LON Static method Public Method Calculate destination co-ordinates 20100818
14 GET_DIS_INTERNAL_FORMULA Static method Public Method Calculate the location of a point between two known points . 20100921
15 GET_DIS_SPH_LAW_OF_COSINES Static method Public Method Calculate distance using spherical law of cosines 20100818
Events
Class CL_GIS_GEOCOD_CAL has no event.
Types
Class CL_GIS_GEOCOD_CAL has no local type.
Method Signatures

Method ATAN2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20100930
2 Exporting EV_ATAN2 Call by reference Type reference (TYPE) F 20100818
3 Importing IV_X Call by reference Type reference (TYPE) F 20100818
4 Importing IV_Y Call by reference Type reference (TYPE) F 20100818

Method ATAN2 on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_DEG_TO_RAD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_RAD Call by reference Type reference (TYPE) F 20100818
2 Importing IV_DEG Call by reference Type reference (TYPE) DEG Geo location longitude 20100818

Method CONVERT_DEG_TO_RAD on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_DM_TO_KM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KM Call by reference Type reference (TYPE) F 20100927
2 Importing IV_DM Call by reference Type reference (TYPE) F 20100927

Method CONVERT_DM_TO_KM on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_FT_TO_KM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KM Call by reference Type reference (TYPE) F 20100927
2 Importing IV_FT Call by reference Type reference (TYPE) F 20100927

Method CONVERT_FT_TO_KM on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_KM_TO_MI Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MILES Call by reference Type reference (TYPE) F 20100927
2 Importing IV_KM Call by reference Type reference (TYPE) F 20100927

Method CONVERT_KM_TO_MI on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_MI_TO_KM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KM Call by reference Type reference (TYPE) F 20100927
2 Importing IV_MI Call by reference Type reference (TYPE) F 20100927

Method CONVERT_MI_TO_KM on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_M_TO_KM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KM Call by reference Type reference (TYPE) F 20100927
2 Importing IV_M Call by reference Type reference (TYPE) F 20100927

Method CONVERT_M_TO_KM on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_RAD_TO_DEG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DEG Call by reference Type reference (TYPE) DEG Geo location longitude 20100818
2 Importing IV_RAD Call by reference Type reference (TYPE) F Geo location longitude 20100818

Method CONVERT_RAD_TO_DEG on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_RAD_TO_DEG_FLOAT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DEG Call by reference Type reference (TYPE) F Geo location longitude 20100921
2 Importing IV_RAD Call by reference Type reference (TYPE) F Geo location longitude 20100921

Method CONVERT_RAD_TO_DEG_FLOAT on class CL_GIS_GEOCOD_CAL has no exception.

Method CONVERT_YD_TO_KM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KM Call by reference Type reference (TYPE) F 20100927
2 Importing IV_YD Call by reference Type reference (TYPE) F 20100927

Method CONVERT_YD_TO_KM on class CL_GIS_GEOCOD_CAL has no exception.

Method GET_BRNG_GIVN_LAT_LON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_BRNG_DEG Call by reference Type reference (TYPE) BRNG Geo location latitude 20100818
2 Exporting EV_BRNG_RAD Call by reference Type reference (TYPE) F 20100818
3 Importing IV_LAT1_RAD Call by reference Type reference (TYPE) F 20100818
4 Importing IV_LAT2_RAD Call by reference Type reference (TYPE) F 20100818
5 Importing IV_LON1_RAD Call by reference Type reference (TYPE) F 20100818
6 Importing IV_LON2_RAD Call by reference Type reference (TYPE) F 20100818

Method GET_BRNG_GIVN_LAT_LON on class CL_GIS_GEOCOD_CAL has no exception.

Method GET_DIS_BW_TWO_POINTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DIS_TOTAL Call by reference Type reference (TYPE) DECFLOAT34 20100923
2 Importing IV_LAT_BEG Call by reference Type reference (TYPE) DECFLOAT34 20100923
3 Importing IV_LAT_END Call by reference Type reference (TYPE) DECFLOAT34 20100923
4 Importing IV_LON_BEG Call by reference Type reference (TYPE) DECFLOAT34 20100923
5 Importing IV_LON_END Call by reference Type reference (TYPE) DECFLOAT34 20100923

Method GET_DIS_BW_TWO_POINTS on class CL_GIS_GEOCOD_CAL has no exception.

Method GET_DIS_GIVN_BRNG_LAT_LON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LAT1_RAD Call by reference Type reference (TYPE) F 20100818
2 Exporting EV_LON1_RAD Call by reference Type reference (TYPE) F 20100818
3 Importing IV_BRNG_RAD Call by reference Type reference (TYPE) F 20100818
4 Importing IV_DIS Call by reference Type reference (TYPE) F 20100818
5 Importing IV_LAT1_RAD Call by reference Type reference (TYPE) F 20100818
6 Importing IV_LON1_RAD Call by reference Type reference (TYPE) F 20100818

Method GET_DIS_GIVN_BRNG_LAT_LON on class CL_GIS_GEOCOD_CAL has no exception.

Method GET_DIS_INTERNAL_FORMULA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LAT_POINT Call by reference Type reference (TYPE) DECFLOAT34 20100921
2 Exporting EV_LON_POINT Call by reference Type reference (TYPE) DECFLOAT34 20100921
3 Importing IV_DIS_ERP Call by reference Type reference (TYPE) DECFLOAT34 20100921
4 Importing IV_DIS_TOTAL Call by reference Type reference (TYPE) DECFLOAT34 20100921
5 Importing IV_LAT_BEG Call by reference Type reference (TYPE) DECFLOAT34 20100921
6 Importing IV_LAT_END Call by reference Type reference (TYPE) DECFLOAT34 20100921
7 Importing IV_LON_BEG Call by reference Type reference (TYPE) DECFLOAT34 20100921
8 Importing IV_LON_END Call by reference Type reference (TYPE) DECFLOAT34 20100921

Method GET_DIS_INTERNAL_FORMULA on class CL_GIS_GEOCOD_CAL has no exception.

Method GET_DIS_SPH_LAW_OF_COSINES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DIS Call by reference Type reference (TYPE) F 20100818
2 Importing IV_LAT1_RAD Call by reference Type reference (TYPE) F 20100818
3 Importing IV_LAT2_RAD Call by reference Type reference (TYPE) F 20100818
4 Importing IV_LON1_RAD Call by reference Type reference (TYPE) F 20100818
5 Importing IV_LON2_RAD Call by reference Type reference (TYPE) F 20100818

Method GET_DIS_SPH_LAW_OF_COSINES on class CL_GIS_GEOCOD_CAL has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 703