BIS fnc posDegToWorld: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= | {{Function|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| TKOH | | | TKOH |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Convert latitude/longtitude coordinates into game world position. | | Convert latitude/longtitude coordinates into game world position. | ||
World config has to contain following settings to convert the position correctly | World config has to contain following settings to convert the position correctly: | ||
<code> | |||
{{codecomment|// Required for scripting}} | |||
mapSize <nowiki>=</nowiki> 61440; {{codecomment|//--- Can differ from mapArea size, as ingame world can be resized}} | |||
mapZone <nowiki>=</nowiki> 10; {{codecomment|//--- UTM zone}} | |||
mapArea[] <nowiki>=</nowiki> { {{codecomment|//--- lon/lat coordinates (not in UTM to assure .kml precision)}} | |||
-122.754367782585,47.3272454065969, {{codecomment|//--- Bottom Left}} | |||
-121.930117859276,47.8753494907418 {{codecomment|//--- Top Right}} | |||
};</code> |Description= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [latitude, | | [longitude, latitude'', world''] call BIS_fnc_posDegToWorld; |Syntax= | ||
|p1= | |p1= longitude: [[Number]] |Parameter 1= | ||
|p2= | |p2= latitude: [[Number]] |Parameter 2= | ||
| [[Array]] - [northing | |p3= world: [[String]] - (Optional, default [[worldName]]) |Parameter 3= | ||
| [[Array]] of [[Number|Numbers]] - format [easting,northing,zone] |Return value= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[47.63959,-122.127249] call BIS_fnc_posDegToWorld;</code> | | |x1= <code>[47.63959,-122.127249] [[call]] [[BIS_fnc_posDegToWorld]];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_posDegToUTM]], [[BIS_fnc_posUTMToDeg]] |See also= | ||
}} | }} | ||
Line 44: | Line 45: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:posDegToWorld}}]] | |||
[[Category:Function Group: Map|{{uc:posDegToWorld}}]] | [[Category:Function Group: Map|{{uc:posDegToWorld}}]] | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:posDegToWorld}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:posDegToWorld}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:posDegToWorld}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:posDegToWorld}}]] |
Revision as of 23:27, 4 June 2018
Description
- Description:
- Convert latitude/longtitude coordinates into game world position.
World config has to 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:
- Uncategorised
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