BIS fnc posDegToWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| TKOH |Game name=
| TKOH |Game name=
Line 7: Line 6:


|gr1 = Map and Markers |GROUP1=
|gr1 = Map and Markers |GROUP1=
____________________________________________________________________________________________


| Convert latitude/longtitude coordinates into game world position.<br>
| Convert latitude/longtitude coordinates into game world position.<br>
Line 18: Line 16:
-121.930117859276,47.8753494907418 {{codecomment|// Top Right}}
-121.930117859276,47.8753494907418 {{codecomment|// Top Right}}
};</code> |Description=
};</code> |Description=
____________________________________________________________________________________________


| [longitude, latitude'', world''] call [[BIS_fnc_posDegToWorld]] |Syntax=
| [longitude, latitude'', world''] call [[BIS_fnc_posDegToWorld]] |Syntax=
Line 29: Line 26:


| [[Array]] of [[Number|Numbers]] - format [easting, northing, zone] |Return value=
| [[Array]] of [[Number|Numbers]] - format [easting, northing, zone] |Return value=
____________________________________________________________________________________________
   
   
|x1= <code>[47.63959,-122.127249] [[call]] [[BIS_fnc_posDegToWorld]];</code> |Example 1=
|x1= <code>[47.63959,-122.127249] [[call]] [[BIS_fnc_posDegToWorld]];</code> |Example 1=
____________________________________________________________________________________________


| [[BIS_fnc_posDegToUTM]], [[BIS_fnc_posUTMToDeg]] |See also=
| [[BIS_fnc_posDegToUTM]], [[BIS_fnc_posUTMToDeg]] |See also=

Revision as of 00:46, 17 January 2021

Hover & click on the images for description

Description

Description:
Convert latitude/longtitude coordinates into game world position.
World config must contain following settings to convert the position correctly: // Required for scripting mapSize = 61440; // Can differ from mapArea size, as ingame world can be resized mapZone = 10; // UTM zone mapArea[] = { // lon/lat coordinates (not in UTM to assure .kml precision) -122.754367782585,47.3272454065969, // Bottom Left -121.930117859276,47.8753494907418 // Top Right };
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[longitude, latitude, world] call BIS_fnc_posDegToWorld
Parameters:
longitude: Number
latitude: Number
world: String - (Optional, default worldName)
Return Value:
Array of Numbers - format [easting, northing, zone]

Examples

Example 1:
[47.63959,-122.127249] call BIS_fnc_posDegToWorld;

Additional Information

See also:
BIS_fnc_posDegToUTMBIS_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

Notes

Bottom Section