BIS fnc posUTMToDeg: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "Link\|https:\/\/en\.wikipedia\.org\/([^w][^i])" to "Link|https://en.wikipedia.org/wiki/$1")
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| tkoh |= Game name
|game2= arma3
|version2= 0.50


|1.00|= Game version
|gr1= Map and Markers
____________________________________________________________________________________________


| <pre>/*
|descr= Generate Lat and Long fields from {{Link|https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system#UTM_zone|UTM Zone}}, Easting and Northing.
It uses {{Link|https://en.wikipedia.org/wiki/North_American_Datum|NAD83 constants}}.


Description:
|s1= [easting, northing, zone'', hemisphere''] call [[BIS_fnc_posUTMToDeg]]
Generate Lat and Long fields from UTM Zone, Easting and Northing. It uses NAD83 constants.


Parameter(s):
|p1= easting: [[Number]]
_this select 0: NUMBER - Northing
_this select 1: NUMBER - Easting
_this select 2: NUMBER - Zone
_this select 3 (Optional): STRING - Hemisphere ("N" or "S")


Returns:
|p2= northing: [[Number]]
ARRAY - [longtitude,latitude]
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_posUTMToDeg]]; --> |= Syntax
|p3= zone: [[Number]]


|p1= |= Parameter 1
|p4= hemisphere: [[String]] - (Optional, default "N") "N" for northern hemisphere, "S" for southern hemisphere


| |= Return value
|r1= [[Array]] of [[Number]]s - format [longitude, latitude]
____________________________________________________________________________________________


|x1= <code></code> |=
|x1= <sqf>[5273702, 560561, 10] call BIS_fnc_posUTMToDeg;</sqf>
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_posDegToUTM]] [[BIS_fnc_posDegToWorld]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:posUTMToDeg}}]]
[[Category:Functions|{{uc:posUTMToDeg}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:posUTMToDeg}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:posUTMToDeg}}]]

Latest revision as of 23:11, 23 February 2023

Hover & click on the images for description

Description

Description:
Generate Lat and Long fields from UTM Zone, Easting and Northing. It uses NAD83 constants.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[easting, northing, zone, hemisphere] call BIS_fnc_posUTMToDeg
Parameters:
easting: Number
northing: Number
zone: Number
hemisphere: String - (Optional, default "N") "N" for northern hemisphere, "S" for southern hemisphere
Return Value:
Array of Numbers - format [longitude, latitude]

Examples

Example 1:
[5273702, 560561, 10] call BIS_fnc_posUTMToDeg;

Additional Information

See also:
BIS_fnc_posDegToUTM BIS_fnc_posDegToWorld

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note