BIS fnc KMLimport: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
|gr1= Map and Markers | |gr1= Map and Markers | ||
|descr= Read positions from a {{ | |descr= Read positions from a {{Link|https://en.wikipedia.org/wiki/Keyhole_Markup_Language|KML file}}. | ||
{{Feature| | {{Feature|informative|Recommended to execute in loading screen.}} | ||
|s1= filePath call [[BIS_fnc_KMLimport]] | |s1= filePath call [[BIS_fnc_KMLimport]] | ||
|p1= filePath: [[String]] - (Optional, default | |p1= filePath: [[String]] - (Optional, default <sqf inline>"hsim\Doc_H\GoogleEarth\Missions\" + missionName + ".kml"</sqf>) 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}}.}} | ||
|r1= [[Array]] of [[Array | |r1= [[Array]] of [[Array]]s in format [type, positionXYZ, folder, name, description] | ||
* type: [[Number]] - 0 for a point, 1 for a line, 2 for a polygon | * type: [[Number]] - 0 for a point, 1 for a line, 2 for a polygon | ||
* positionXYZ: [[Position]] - format [[Position#PositionAGL|PositionAGL]] | * positionXYZ: [[Position]] - format [[Position#PositionAGL|PositionAGL]] | ||
Line 24: | Line 24: | ||
* description: [[String]] - location's description | * description: [[String]] - location's description | ||
|x1= < | |x1= <sqf>private _data = "subDir\myFile.kml" call BIS_fnc_KMLimport;</sqf> | ||
|seealso= [[BIS_fnc_keypointsExportFromKML]] [[BIS_fnc_dbImportXML]] | |seealso= [[BIS_fnc_keypointsExportFromKML]] [[BIS_fnc_dbImportXML]] [[BIS_fnc_posDegToWorld]] | ||
}} | }} |
Latest revision as of 00:25, 2 February 2024
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:
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