Difference between revisions of "BIS fnc posDegToUTM"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ")
m (Some wiki formatting)
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
It uses {{Wikipedia|North_American_Datum|NAD83 constants}}.
 
It uses {{Wikipedia|North_American_Datum|NAD83 constants}}.
  
|s1=[longitude, latitude'', zone''] call [[BIS_fnc_posDegToUTM]]
+
|s1= [longitude, latitude'', zone''] call [[BIS_fnc_posDegToUTM]]
  
 
|p1= longitude: [[Number]]
 
|p1= longitude: [[Number]]
Line 18: Line 18:
 
|p2= latitude: [[Number]]
 
|p2= latitude: [[Number]]
  
|p3= zone: [[Number]] - (Optional, default {{ic|31 + [[floor]] (''longitude'' / 6)}})
+
|p3= zone: [[Number]] - (Optional, default <sqf inline>31 + floor (_longitude / 6)</sqf>)
  
|r1= [[Array]] of [[Number|Numbers]] - format [easting, northing, zone]
+
|r1= [[Array]] of [[Number]]s - format [easting, northing, zone]
  
|x1= <code>[[private]] _utmZone = [47.63959,-122.127249] [[call]] [[BIS_fnc_posDegToUTM]];</code>
+
|x1= <sqf>private _utmZone = [47.63959,-122.127249] call BIS_fnc_posDegToUTM;</sqf>
  
|seealso= [[BIS_fnc_posDegToWorld]], [[BIS_fnc_posUTMToDeg]]
+
|seealso= [[BIS_fnc_posDegToWorld]] [[BIS_fnc_posUTMToDeg]]
 
}}
 
}}

Latest revision as of 16:45, 26 July 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
[longitude, latitude, zone] call BIS_fnc_posDegToUTM
Parameters:
longitude: Number
latitude: Number
zone: Number - (Optional, default 31 + floor (_longitude / 6))
Return Value:
Array of Numbers - format [easting, northing, zone]

Examples

Example 1:
private _utmZone = [47.63959,-122.127249] call BIS_fnc_posDegToUTM;

Additional Information

See also:
BIS_fnc_posDegToWorld BIS_fnc_posUTMToDeg

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