Commit abcf280d authored by garciay's avatar garciay
Browse files

Create types WGSLatitude & WGSLongitude for Two/ThreeDLocation data structures

parent fc9578da
Loading
Loading
Loading
Loading
+17 −5
Original line number Original line Diff line number Diff line
@@ -278,6 +278,18 @@ module LibItsSecurity_TypesAndValues {
            e_year          (4)  // years (31 556 925 seconds)
            e_year          (4)  // years (31 556 925 seconds)
        } with { variant "3 bit" }
        } with { variant "3 bit" }
        
        
        /**
         * @desc Define latitude range
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.20  ThreeDLocation/permitted values
         */
        type integer WGSLatitude  (-900000000 .. 900000001)  with { variant "32 bit"};
        
        /**
         * @desc Define longitude range
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.20  ThreeDLocation/permitted values
         */
        type integer WGSLongitude (-1800000000 .. 1800000001) with { variant "32 bit"};
        
        /**
        /**
         * @desc Specify a two dimensional location
         * @desc Specify a two dimensional location
         * @member latitude     Latitude in tenths of micro degrees relative to the World Geodetic System (WGS)-84 datum 
         * @member latitude     Latitude in tenths of micro degrees relative to the World Geodetic System (WGS)-84 datum 
@@ -285,8 +297,8 @@ module LibItsSecurity_TypesAndValues {
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.19  TwoDLocation
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.19  TwoDLocation
         */
         */
        type record TwoDLocation {
        type record TwoDLocation {
            Int32   latitude,
            WGSLatitude     latitude,
            Int32   longitude
            WGSLongitude    longitude
        } // End of type TwoDLocation
        } // End of type TwoDLocation
        
        
        /**
        /**
@@ -297,9 +309,9 @@ module LibItsSecurity_TypesAndValues {
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.20  ThreeDLocation
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.20  ThreeDLocation
         */
         */
        type record ThreeDLocation {
        type record ThreeDLocation {
            Int32   latitude,
            WGSLatitude     latitude,
            Int32   longitude,
            WGSLongitude    longitude,
            Oct2    elevation // Due to physical meaning, it cannot be Oct0to2
            Oct2    elevation
        } // End of type ThreeDLocation
        } // End of type ThreeDLocation
        
        
        /**
        /**