Google Earth KML
In the
Files
Select .kml or .kmz files for import.
KML Layer and Table Name
The system uses an intelligent parser that scans the KML file's XML structure to identify valid Folders or Documents. It exclusively registers them as selectable layers if they contain actual spatial features, such as a Placemark or GroundOverlay, effectively ignoring empty container folders. If valid distinct layers are found within the file, you must select the specific layer you wish to import from the kmlLayer drop-down list. If no specific folders are found or the KML lacks internal structure, the layer selection list is automatically hidden, and the system will group all spatial features into a single imported layer.
The system will automatically generate a suggested Table name based on your selection, which can be manually adjusted (maximum 30 characters).
Layer CRS, Reprojection, and Geometry Layout
Because KML files strictly use the WGS 84 coordinate system, the source Coordinate Reference System (Layer CRS) is automatically locked to EPSG:4326. You can choose to enable reprojection to transform the data into a different Target CRS during the import process.
You can also specify the Geometry layout for the imported features (2D - XY, 3D - XYZ, 3D - XYM, or 4D - XYZM) from the drop-down list.
Options
- Personal Use - Table imported with this option will be linked to your username and will therefore only be visible to you.
- Read-only - Enable the option if you want to prevent the table data from changing.
- Open Table - The table will be opened and loaded automatically after import.
- Add Layer to Workspace - If the Open Table option is checked, you can enable this option to automatically add the resulting layer to your current workspace.
- Skip errors - Continue importing the rest of the data if individual features encounter an error. Problematic records will not be transferred to the target table.
Processing and Symbology
Large KML files are uploaded in chunks over the network to ensure stability and allow the system to resume the upload in case of network errors.
The server-side import process utilizes the LIBKML driver to properly support nested folders and styling. Gismatrix automatically extracts styling elements from the KML file, including intelligently resolving styleUrl references from the document's internal StyleTable. These styles are then converted into MapInfo-compatible symbology and stored in the mi_style column. Additionally, potential column name conflicts, such as an existing 'gid' attribute, are automatically resolved by utilizing temporary database keys during the import process to prevent primary key collisions.
