BIS fnc KMLimport: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1 = Map and Markers | |gr1 = Map and Markers | ||
| Read positions from a [https://en.wikipedia.org/wiki/Keyhole_Markup_Language KML file]. | | Read positions from a [https://en.wikipedia.org/wiki/Keyhole_Markup_Language KML file]. | ||
{{Informative|Recommended to execute in loading screen.}} | {{Informative|Recommended to execute in loading screen.}} | ||
| filePath call [[BIS_fnc_KMLimport]] | | filePath call [[BIS_fnc_KMLimport]] | ||
|p1= filePath: [[String]] - (Optional, default {{Inline code|"hsim\Doc_H\GoogleEarth\Missions\" + [[missionName]] + ".kml"}}) KML file path | |p1= filePath: [[String]] - (Optional, default {{Inline code|"hsim\Doc_H\GoogleEarth\Missions\" + [[missionName]] + ".kml"}}) KML file path | ||
{{Feature|arma3|Default value only works in {{tkoh}}. Do not rely on it in {{arma3}}}} | {{Feature|arma3|Default value only works in {{tkoh}}. Do not rely on it in {{arma3}}}} | ||
| [[Array]] of [[Array|Arrays]] in format [type, positionXYZ, folder, name, description] | | [[Array]] of [[Array|Arrays]] in format [type, positionXYZ, folder, name, description] | ||
Line 20: | Line 20: | ||
* folder: [[String]] - path to the value, "" if in the .kml root | * folder: [[String]] - path to the value, "" if in the .kml root | ||
* name: [[String]] - location's name | * name: [[String]] - location's name | ||
* description: [[String]] - location's description | * description: [[String]] - location's description | ||
|x1= <code>_data = "subDir\myFile.kml" [[call]] [[BIS_fnc_KMLimport]];</code> | |x1= <code>_data = "subDir\myFile.kml" [[call]] [[BIS_fnc_KMLimport]];</code> | ||
| [[BIS_fnc_keypointsExportFromKML]], [[BIS_fnc_dbImportXML]], [[BIS_fnc_posDegToWorld]] | | [[BIS_fnc_keypointsExportFromKML]], [[BIS_fnc_dbImportXML]], [[BIS_fnc_posDegToWorld]] | ||
}} | }} | ||
Revision as of 22:23, 17 January 2021
Description
- Description:
- Read positions from a KML file.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- filePath call BIS_fnc_KMLimport
- Parameters:
- filePath: String - (Optional, default
"hsim\Doc_H\GoogleEarth\Missions\" + missionName + ".kml"
) KML file path - Return Value:
- Array of Arrays in format [type, positionXYZ, folder, name, description]
Examples
- Example 1:
_data = "subDir\myFile.kml" call BIS_fnc_KMLimport;
Additional Information
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