dicogis.ui.main_windows module

DicoGIS Automatize the creation of a dictionnary of geographic data

contained in a folders structures. It produces an Excel output file (.xlsx)

Julien Moura (@geojulien)

class dicogis.ui.main_windows.DicoGIS(theme='radiance')

Bases: ThemedTk

Main DicoGIS GUI object.

Parameters:

ThemedTk – themed tk object.

__init__(theme='radiance')

Main window constructor.

Parameters:

theme (str) – Tkinter theme to use. Defaults to “radiance”.

change_lang(event)

Update the texts dictionary with the language selected.

check_fields(tab_data_type)

Check if required form fields are not empty.

Parameters:

tab_data_type (int) – form’s tab to check

Return type:

bool

Returns:

True if everything is OK

ligeofiles(target_folder)

List compatible geo-files stored into a folder structure.

Parameters:

target_folder (str) – folder into walk to look for geographic datasets.

Returns:

tuple of list of paths by formats

Return type:

tuple[list[str]]

package_about = <module 'dicogis.__about__' from '/home/runner/work/DicoGIS/DicoGIS/dicogis/__about__.py'>
process()

Check needed info and launch different processes.

process_db(sgbd_reader)

Process PostGIS DB analisis.

Parameters:

sgbd_reader (ReadPostGIS) – PostGIS georeader

process_files()

Launch the different processes.

test_connection()

Test database connection.

Returns:

PostGIS reader or None

Return type:

Optional[ReadPostGIS]