svir.metadata package

Submodules

svir.metadata.iso_19115_template module

InaSAFE Disaster risk assessment tool developed by AusAid -

ISO 19115 METADATA XML TEMPLATE

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

svir.metadata.metadata_utilities module

InaSAFE Disaster risk assessment tool developed by AusAid - Exception Classes.

Custom exception classes for the IS application.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

svir.metadata.metadata_utilities.CDATA(text=None)[source]
svir.metadata.metadata_utilities.generate_iso_metadata(supplemental_information=None)[source]

Make a valid ISO 19115 XML using the values of get_defaults

This method will create XML based on the iso_19115_template.py template The $placeholders there will be replaced by the values returned from defaults.get_defaults. Note that get_defaults takes care of using the values set in QGIS settings if available.

Parameters:supplemental_information (dict) – The supplemental information to write.
Returns:str valid XML
svir.metadata.metadata_utilities.get_supplemental_info(xml, prefix=None)[source]
svir.metadata.metadata_utilities.valid_iso_xml(xml_filename)[source]

add the necessary tags into an existing xml file or create a new one

Parameters:xml_filename – name of the xml file
Returns:tree the parsed ElementTree
svir.metadata.metadata_utilities.write_iso_metadata_file(xml_filename, supplemental_information=None)[source]

Make a valid ISO 19115 XML file using the values of defaults.get_defaults

This method will create a file based on the iso_19115_template.py template The $placeholders there will be replaced by the values returned from defaults.get_defaults. Note that get_defaults takes care of using the values set in QGIS settings if available.

Parameters:xml_filename – full path to the file to be generated
Returns:

Module contents