obspy.seishub.client._EventMapperClient.saveKML

_EventMapperClient.saveKML(filename, overwrite=False, **kwargs)[source]

Posts an event.getList() and writes the results as a KML file. For optional arguments, see help for getList() and getKML()

Parameters:
  • filename (str) Filename (complete path) to save KML to.
  • overwrite (bool) Overwrite existing file, otherwise if file exists an Exception is raised.
  • nolabels (bool) Hide labels of events in KML. Can be useful with large data sets.
Return type:

str

Returns:

String containing KML information of all matching events. This string can be written to a file and loaded into e.g. Google Earth.

This Page