BIS fnc KMLimport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
Line 24: Line 24:
* description: [[String]] - location's description
* description: [[String]] - location's description


|x1= <code>[[private]] _data = "subDir\myFile.kml" [[call]] [[BIS_fnc_KMLimport]];</code>
|x1= <code>private _data = "subDir\myFile.kml" [[call]] [[BIS_fnc_KMLimport]];</code>


|seealso= [[BIS_fnc_keypointsExportFromKML]] [[BIS_fnc_dbImportXML]] [[BIS_fnc_posDegToWorld]]
|seealso= [[BIS_fnc_keypointsExportFromKML]] [[BIS_fnc_dbImportXML]] [[BIS_fnc_posDegToWorld]]
}}
}}

Revision as of 21:35, 12 July 2022

Hover & click on the images for description

Description

Description:
Read positions from a KML file.
Recommended to execute in loading screen.
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
Arma 3
Default value only works in Take On Helicopters. Do not rely on it in Arma 3
Return Value:
Array of Arrays in format [type, positionXYZ, folder, name, description]
  • type: Number - 0 for a point, 1 for a line, 2 for a polygon
  • positionXYZ: Position - format PositionAGL
  • folder: String - path to the value, "" if in the .kml root
  • name: String - location's name
  • description: String - location's description

Examples

Example 1:
private _data = "subDir\myFile.kml" call BIS_fnc_KMLimport;

Additional Information

See also:
BIS_fnc_keypointsExportFromKML BIS_fnc_dbImportXML BIS_fnc_posDegToWorld

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