Import KML/KMZ data into perspective map component

Hello
I need to import KML/KMZ files data into perspective map to show pipelines and polygons.
My guess I need some how parse KML files and put those data to map.layers properties.
Is someone have any experience doing this before? Or have some Python library to convert data to csv or json?
Thanks for any help or idea.

1 Like

Hi as the manual from Ignition said, you can use Geojson geojson.io | powered by Mapbox
there you can upload your KML file and then you can get your JSON, in Ignition you can create an event where you can run a script action and there you define your script where you can use the json properties and insert markers or popups etc.

1 Like

Might just leave this here, for those playing at home:

Perspective Map - Adding GeoJSON Shapes - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)