SAP ABAP Class CL_GEOCALC (Geo coordinate calculation functions)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-GEO (Application Component) Geographical Functions
⤷
SZGL (Package) R/3 Central Basis Development: Geo Locations
⤷
⤷
Properties
| Class | CL_GEOCALC | |
| Short Description | Geo coordinate calculation functions | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SZGL | R/3 Central Basis Development: Geo Locations |
| Created | 19990414 | SAP |
| Last change | 19990426 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_GEOCALC has no forward declaration.
Interfaces
Class CL_GEOCALC has no interface implemented.
Friends
Class CL_GEOCALC has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Protected | Type reference (TYPE) | F | '180.0' | 180.0 | 19990426 | ||
| 2 | Constant | Protected | Type reference (TYPE) | F | '0.01745329251994329555556' | Degree->Radian conversion factor | 19990426 | ||
| 3 | Constant | Protected | Type reference (TYPE) | F | '3.1415926535897932' | PI | 19990426 | ||
| 4 | Constant | Protected | Type reference (TYPE) | F | '6378137.0' | Radius of the Earth | 19990426 | ||
| 5 | Constant | Protected | Type reference (TYPE) | F | '2.0' | Constant value 2.0 | 19990426 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Stable conv longtud wit dec.place->deg,min,sec,comp.bearing | 20000407 | |
| 2 | Static method | Public | Method | Stable conv deg,min,sec,comp.bearing->longtud wit dec.place | 20000407 | |
| 3 | Static method | Public | Method | Stable conv longtud wit dec.place->deg,min,sec,comp.bearing | 20000407 | |
| 4 | Static method | Public | Method | Stable conv deg,min,sec,comp.bearing->longtud wit dec.place | 20000407 | |
| 5 | Static method | Protected | Method | Stable conv longtud wit dec.place->deg,min,sec,comp.bearing | 20000407 | |
| 6 | Static method | Protected | Method | Stable conv deg,min,sec,comp.bearing->longtud wit dec.place | 20000407 | |
| 7 | Static method | Protected | Method | Stable conv longtud wit dec.place->deg,min,sec,comp.bearing | 20000407 | |
| 8 | Static method | Protected | Method | Stable conv deg,min,sec,comp.bearing->longtud wit dec.place | 20000407 | |
| 9 | Static method | Public | Method | Calculates the distance between two CL_GeoLoc in [m] | 19990414 | |
| 10 | Static method | Public | Method | Calculates the distance between two Geo locations in [m] | 19991014 | |
| 11 | Static method | Public | Method | Moves a Geo location | 19990416 | |
| 12 | Static method | Protected | Method | Internal distance calculation (Earth = sphere) | 19990426 |
Events
Class CL_GEOCALC has no event.
Types
Class CL_GEOCALC has no local type.
Method Signatures
Method CONVSTABL_LAT_DEGDEC2DEGMINSEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LATITUDE | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad der Geo-Location | 20000407 | |||
| 2 | LATITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLATDISP | Anzeigefeld für Ein/Ausgabe des Breitengrades | 20000407 |
Method CONVSTABL_LAT_DEGDEC2DEGMINSEC on class CL_GEOCALC has no exception.
Method CONVSTABL_LAT_DEGMINSEC2DEGDEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LATITUDE | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad der Geo-Location | 20000407 | |||
| 2 | LATITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLATDISP | Anzeigefeld für Ein/Ausgabe des Breitengrades | 20000407 |
Method CONVSTABL_LAT_DEGMINSEC2DEGDEC on class CL_GEOCALC has no exception.
Method CONVSTABL_LON_DEGDEC2DEGMINSEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LONGITUDE | Call by reference | Type reference (TYPE) | GEOLON | Längengrad der Geo-Location | 20000407 | |||
| 2 | LONGITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLONDISP | Anzeigefeld für Ein/Ausgabe des Längengrades | 20000407 |
Method CONVSTABL_LON_DEGDEC2DEGMINSEC on class CL_GEOCALC has no exception.
Method CONVSTABL_LON_DEGMINSEC2DEGDEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LONGITUDE | Call by reference | Type reference (TYPE) | GEOLON | Längengrad der Geo-Location | 20000407 | |||
| 2 | LONGITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLONDISP | Anzeigefeld für Ein/Ausgabe des Längengrades | 20000407 |
Method CONVSTABL_LON_DEGMINSEC2DEGDEC on class CL_GEOCALC has no exception.
Method CONV_LAT_DEGDEC2DEGMINSEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LATITUDE | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad der Geo-Location | 20000407 | |||
| 2 | LATITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLATDISP | Anzeigefeld für Ein/Ausgabe des Breitengrades | 20000407 |
Method CONV_LAT_DEGDEC2DEGMINSEC on class CL_GEOCALC has no exception.
Method CONV_LAT_DEGMINSEC2DEGDEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LATITUDE | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad der Geo-Location | 20000407 | |||
| 2 | LATITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLATDISP | Anzeigefeld für Ein/Ausgabe des Breitengrades | 20000407 |
Method CONV_LAT_DEGMINSEC2DEGDEC on class CL_GEOCALC has no exception.
Method CONV_LON_DEGDEC2DEGMINSEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LONGITUDE | Call by reference | Type reference (TYPE) | GEOLON | Längengrad der Geo-Location | 20000407 | |||
| 2 | LONGITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLONDISP | Anzeigefeld für Ein/Ausgabe des Längengrades | 20000407 |
Method CONV_LON_DEGDEC2DEGMINSEC on class CL_GEOCALC has no exception.
Method CONV_LON_DEGMINSEC2DEGDEC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LONGITUDE | Call by reference | Type reference (TYPE) | GEOLON | Längengrad der Geo-Location | 20000407 | |||
| 2 | LONGITUDE_DEGMINSEC | Call by reference | Type reference (TYPE) | GEOLONDISP | Anzeigefeld für Ein/Ausgabe des Längengrades | 20000407 |
Method CONV_LON_DEGMINSEC2DEGDEC on class CL_GEOCALC has no exception.
Method DISTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_GEOLOC1 | Call by reference | Object reference (TYPE REF TO) | CL_GEOLOC | Geo-Location 1 | 19990414 | |||
| 2 | C_GEOLOC2 | Call by reference | Object reference (TYPE REF TO) | CL_GEOLOC | Geo-Location 2 | 19990414 | |||
| 3 | DISTANCE | Call by reference | Type reference (TYPE) | F | Entfernung in [m] | 19990414 |
Method DISTANCE on class CL_GEOCALC has no exception.
Method DISTANCE_BY_LONLAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DISTANCE | Call by reference | Type reference (TYPE) | F | Entfernung in Metern | 19991014 | |||
| 2 | LATITUDE1 | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad erste Lokation | 19991014 | |||
| 3 | LATITUDE2 | Call by reference | Type reference (TYPE) | GEOLAT | Breitengrad zweite Lokation | 19991014 | |||
| 4 | LONGITUDE1 | Call by reference | Type reference (TYPE) | GEOLON | Längengrad erste Lokation | 19991014 | |||
| 5 | LONGITUDE2 | Call by reference | Type reference (TYPE) | GEOLON | Längengrad zweite Lokation | 19991014 |
Method DISTANCE_BY_LONLAT on class CL_GEOCALC has no exception.
Method SHIFT_GEOLOC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_GEOLOC | Call by reference | Object reference (TYPE REF TO) | CL_GEOLOC | Zu verschiebende Geo-Location | 19990416 | |||
| 2 | LATSHIFT | Call by reference | Type reference (TYPE) | GEODIST | Verschiebung entlang der Breitengrade in [m] | 19990416 | |||
| 3 | LONSHIFT | Call by reference | Type reference (TYPE) | GEODIST | Verschiebung enlang der Längengrade in [m] | 19990416 |
Method SHIFT_GEOLOC on class CL_GEOCALC has no exception.
Method _DISTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DISTANCE | Call by reference | Type reference (TYPE) | F | Entfernung in [m] | 19990426 | |||
| 2 | LATRAD1 | Call by reference | Type reference (TYPE) | F | Breitengrad in rad, Location 1 | 19990426 | |||
| 3 | LATRAD2 | Call by reference | Type reference (TYPE) | F | Breitengrad in rad, Location 2 | 19990426 | |||
| 4 | LONRAD1 | Call by reference | Type reference (TYPE) | F | Längengrad in rad, Location 1 | 19990426 | |||
| 5 | LONRAD2 | Call by reference | Type reference (TYPE) | F | Längengrad in rad, Location 2 | 19990426 |
Method _DISTANCE on class CL_GEOCALC has no exception.
History
| Last changed by/on | SAP | 19990426 |
| SAP Release Created in |