logo AvenzaKMLImporter

What motivated me to create this plugin:

Only after plotting more than a hundred points, in the field, using the Avenza Maps, taking care to use an icon style to represent each type of point we were plotting, and trying to import them into QGIS did we realize that we were not it was possible to import the features while preserving the symbology style used in Avenza (or another equivalent, which could group the points by type of symbology). And so, we ended up losing a very important dimension of information that we used in that app: the symbolism of the dot.

So, I decided to create this plugin.

As it was created to solve this problem we had while using Avenza, and as the KML format is quite extensive, we focused on only meeting the formatting used by Avenza (in the year 2023).

In practice, I've seen that some files created by Google Earth are not importable by this plugin.

If anyone is interested in expanding the list of applications supported by this plugin, fell free to fork this project and make their own implementation.

What this plugin do:

It imports a KML or KMZ file that the user chooses and adds all the features from that file to QGIS as follows:

  1. Adds a group with the name indicated in the plugin's Group field (When a file is uploaded, this field is filled with its name. If you want to change it, do so after choosing the file to be imported).
  2. Within this group, as many subgroups as there are layers present in the imported file will be created. And they will be named with the same name as those found in the imported file.
  3. Within each subgroup, a layer will be created for each type of feature found: point, line and polygon. And all features in the file layer will be organized within the respective layer (point, line or polygon) categorized by the style adopted in Avenza.
  4. If a point-type feature is found, the symbology used will be with icons similar to those that Avenza currently makes available in its free version (October 2023)
  5. If a Track type feature is found, this feature will be added to two QGIS layers:
    1. a points layer, containing all the information for each point (speed, horizontal and vertical accuracy, etc.) and represented by target-shaped icons
    2. and another line, represented using the symbology that was used in the Avenza.

Depending on the user checking/unchecking the 'Expand All Features' checkbox, the group will be added to QGIS fully expanded or completely collapsed.

The plugin saves the folder corresponding to the last valid file choice in its settings, to be used when choosing a new file and, when closed, it saves the state of the 'Expand All Features' checkbox, the size and location of the window

This plugin was created during leisure moments, as a challenge. So, it is possible that, in the near future, this project will not continue.

Material used as an example or inspiration:

  1. Afonso P. Santos => Desenvolvimento de plugin para o QGIS
  2. GeoSemFronteiras => Aula 1/5 - Criando Plugins com Python no QGIS