obspy.core.event.base.ResourceIdentifier.convert_id_to_quakeml_uri

ResourceIdentifier.convert_id_to_quakeml_uri(authority_id='local')[source]

Converts the current ID to a valid QuakeML URI.

Only an invalid QuakeML ResourceIdentifier string it will be converted to a valid one. Otherwise nothing will happen but after calling this method the user can be sure that the ID is a valid QuakeML URI.

The resulting ID will be of the form
smi:authority_id/prefix/resource_id
Parameters:authority_id (str, optional) The base url of the resulting string. Defaults to "local".