To import geofences to a resource, you should have the Create, edit, and delete geofences access right to this resource.
This function allows you to copy geofences from KML and KMZ files to a resource.
Preparing the file for import
Before importing a KML or KMZ file to Wialon, consider the following peculiarities of the file contents:
When importing a file containing an ampersand (&), left angle bracket (<) or right angle bracket (>) in the geofence name or description, make sure they are encoded as follows.
Character Encoding for KML file & & or & < < < > > > Parker & Burns building
.
- A file containing
<MultiGeometry>
tag can’t be imported. For successful import, open the file in the text editor, find and delete all<MultiGeometry>
and</MultiGeometry>
tags and save the changes.
How to import geofences from KML and KMZ files
To import geofences, follow these steps:
- In the user menu, select the Import/Export item and click Import from KML/KMZ.
- Click on the Browse button and select the required KML or KMZ file.
- Click Upload. The selected file will be processed, and its contents will be displayed in the window.
- Select the geofences which should be imported. To select or clear the selection of all the geofences at once, hold down the Ctrl key and click on any of them.
- Select the resource to which you want to copy the geofences. If the resource already contains the same-name geofences, then as a result of the import, it will contain several geofences with the same name.
- Click OK to complete the import.
If all or some of the data hasn't been imported, a warning message is displayed on the screen. It contains a link to a file which you can download to see what data has been imported and what has not. You can see the import results in the log.