isogeotoxlsx.isogeoFromxlsx module¶
Make Metadatas from Excel worksheet like those returned by Isogeo2xlsx.
-
class
isogeotoxlsx.isogeoFromxlsx.IsogeoFromxlsx(file_path='', lang='fr')¶ Bases:
objectUsed to read Isogeo Metadata stored into an Excel worksheet (.xlsx)
- Parameters
file_path (Path) – the path of xlsx file to read
lang (str) – selected language for input
-
build_event(event_date, kind)¶ Build an Event instance from a date as string
-
build_index_dict(work_sheet, ref_dict)¶ Build a dictionnary where keys are Metadata (isogeo-pysdk objet) attributes and values are conresponding column index
-
build_inspireTh(inspireTh_value)¶ Build a dict of INSPIRE themes from a string where each keyword label is delimited with ‘;’, where keys are theme label and keys are theme uuid into Isogeo database
-
build_keywords(keywords_value)¶ Build a list of Keyword instances from a string where each keyword label is delimited with ‘;’
-
build_list(text)¶ Build a list from a string where different values are separated by ‘;’
-
build_md_conditions(conditions_value)¶ Build a list of Conditions instances from a string where each condition is delimited with ‘;’ retrieving licenses in the list of Licenses previously loaded if the excel file contains a ‘Licenses’ work sheet
-
build_md_contacts(contacts_value)¶ Build a list of Contact instances from a string where each contact email is delimited with ‘;’ retrieving theme in the list of Contacts previously loaded if the excel file contains a ‘Contacts’ work sheet
-
build_md_limitations(limitations_value)¶ Build a list of Limitations instances from a string where each limitation is delimited with ‘;’ retrieving directives in the list of Directive previously loaded if the excel file contains a ‘Directives’ work sheet
-
build_md_spec(specs_value)¶ Build a list of Specifications instances from a string where each specification is delimited with ‘;’ retrieving specifications uuid in the list of Specifiactions previously loaded if the excel file contains a ‘Specifications’ work sheet
-
read_file()¶ Simple method to read the xlsx file’s content
-
retrieve_sub_ressources(sub_ressource)¶
-
retrieve_vector_metadatas()¶ Method to retrieve Isogeo vectors metadatas from appropriate sheet and store theme as isogeo-pysdk models objects into class attributes