database_scripts package

create_new_farm module

db module

mean_analyse module

plan_ahead module

table_managment module

class geodatafarm.database_scripts.table_managment.TableManagement(parent)

Bases: object

A widget that enables the possibility to insert data from a text file into a shapefile

check_multiple()

Checks if multiple table is selected

Returns

  • Bool, False if more than one row is selected

  • str, schema.table_name

duplicate_first_row(org_min, org_max, table, schema='harvest')

Duplicates the original data table and returns the first and last row_id

edit_param_name()

Edit the name of all selected parameters.

edit_tbl_name()

This function pops a question if the user wants to rename the selected tables to. Then it is replaced and the manual table is also updated.

merge_tbls()

Merging two data sets into one.

remove_table_from_db()

Removes the selected tables from the database

retrieve_params()

This function is trigged by “edit” table, and basically fills the left list widget, all attributes that have a index get selected by default.

run()

Connects the push buttons and enable the visibility of the dialog.

save_table()

Updates the attribute indexes that are checked in the list widget

split_rows()

Spilt the harvest data to multiple rows.

update_column_list()
update_table_list()

Update the list of tables in the docket widget