Plot KMZ file in Python

Hello, I have KMZ file which includes the fault lines. I want to plot them but when i try to plot with pygmt plot module, it gives me error because of format of kmz. How can i plot the fault lines or how can i convert this kmz file into txt to be able to plot it.

Hi @seismiclover, you might find the post overt at Pygmt plotting multiple lines helpful. Depending on how you KMZ file looks like, there’s a chance you’ll need to convert the KMZ file into something else (either using kml2gmt or ogr2ogr as mentioned in

1 Like