Extract Polygon from KML File

Use the Extract Polygon from KML File option (geogxnet.dll(Geosoft.GX.KML.ExtractPolygon;Run)*) from the UAV Merge Sorties menu to extract a polygon entity from a KML file and write it to a PLY (polygon) file. You can use this file to define the area of interest (AoI) when planning a survey.

Extract Polygon from KML File dialog options

Input file

Select the KML (*.kml) or KMZ (*.kmz) file that contains the polygon to extract.

See the Application Notes below for more information on the format of the import file.

Script Parameter: EXTRACT_POLYGON_FROM_KML.INPUT

Polygon to import

The input file can contain several polygon entities. Select a polygon from the available entries in the drop-down list. Polygons may be complex (i.e., a single outline polygon with 0 to n polygon holes, equivalent to an "inclusive" polygon surrounding "exclusive" polygons).

If no polygons are found, this field is disabled and a warning will be displayed.

Script Parameter: EXTRACT_POLYGON_FROM_KML.POLYGON

Output polygon file

Specify the name of the polygon file (*.ply) to be created.

KML files, by specification, use a single projection: WGS 84 (ESPG 4326). The output polygon file will inherit the geographic coordinate system of the KML file and the coordinate extents (overall AoI) of the extracted polygon entity.

Script Parameter: EXTRACT_POLYGON_FROM_KML.OUTPUT

Application Notes

Keyhole Markup Language (KML) is an XML- based format for storing, displaying and sharing geographic data and associated content.

KML files can be viewed on Google Earth and are used by many popular survey software and navigation systems. Most drone navigation autopilot systems can directly interpret KML files. They are often distributed in KMZ files, which are zipped (compressed) KML files with a .kmz file extension.

  • KML version 2.2 has been adopted as an OGC® KML Standard.
  • More information on the KML file format can be found at: https://developers.google.com/kml

    KML files can be composed of both vector and raster elements including points, lines, polygons, and imagery, as well as related content like graphics, pictures, attributes, and HTML. Whereas datasets in Oasis montaj are typically seen as separate and homogeneous elements (for example, point database for individual locations, line database, polygon files; grids and images can only contain cells or pixels), a single KML file can contain features of different types as well as imagery.

    KML is the most common format for producing UAV navigation files.

    *The GX tool will search in the "...\Geosoft\Desktop Applications \gx" folder. The GX.Net tools, however, are embedded in the geogxnet.dll located in the "...\Geosoft\Desktop Applications \bin" folder. If running this GX interactively, bypassing the menu, first change the folder to point to the "bin" folder, then supply the GX.Net tool in the specified format.