From 4384a98017bf1fb851383b2299a80ed575deaf4c Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Mon, 26 Aug 2024 14:02:36 +0200 Subject: [PATCH] Upgrade test project to 3.22 --- .../projects/pg_metadata_administration.qgs | 3617 +++++++++-------- pg_metadata/test/test_sql.py | 2 +- 2 files changed, 1936 insertions(+), 1683 deletions(-) diff --git a/pg_metadata/resources/projects/pg_metadata_administration.qgs b/pg_metadata/resources/projects/pg_metadata_administration.qgs index 4e046c3b..ef717da6 100644 --- a/pg_metadata/resources/projects/pg_metadata_administration.qgs +++ b/pg_metadata/resources/projects/pg_metadata_administration.qgs @@ -1,13 +1,12 @@ - - - + + - - - + + + - GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 @@ -19,96 +18,135 @@ - - - - + + + + + + + + - + + - - + + + + - + - + + - + - + + - + - + + - + - + + - - + + + + - - - - + + + + + + + + - - + + + + - - + + + + - - + + + + - - - + + + + + - + + - + - + + - - - - + + + + + + + + dataset_00c9da4d_d717_48cc_a848_0d4544b019fd - + - + - - + + - - + + - - + + - + + degrees 5.04407452150329672 @@ -119,7 +157,7 @@ 0 - GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 @@ -131,92 +169,92 @@ 0 - + - + - - - - - - + + + Annotations_cf42651e_5b61_4496_9a61_b4923b089864 @@ -243,7 +281,7 @@ - + @@ -259,13 +297,15 @@ false - + - + 1 + 0 + - + contact_640d326a_25a7_4b9c_8878_42d1201a8198 service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."contact" @@ -301,7 +341,7 @@ - + @@ -318,7 +358,7 @@ - + @@ -328,156 +368,160 @@ postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - - + + + + + - - - + + + - - + + - + + - + + - + + - + + - + + - + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -493,44 +537,45 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - - - - + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - + + - concat("name", ' (', "organisation_name", ')') - + dataset_00c9da4d_d717_48cc_a848_0d4544b019fd service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true srid=4326 type=Polygon checkPrimaryKeyUnicity='1' table="pgmetadata"."dataset" (geom) @@ -539,7 +584,7 @@ def my_form_open(dialog, layer, feature): Dataset - GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 @@ -566,7 +611,7 @@ def my_form_open(dialog, layer, feature): - + undefined 1 @@ -574,7 +619,7 @@ def my_form_open(dialog, layer, feature): - GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 @@ -586,7 +631,7 @@ def my_form_open(dialog, layer, feature): - + @@ -596,176 +641,315 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - + - - - + + + + + + + + + - + + + + + + + + + + + + - - - - + + + + + 0 0 1 - - - + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -773,520 +957,520 @@ def my_form_open(dialog, layer, feature): - + + + - - + + - + + - - + + - + + - + + - + + + + + + + + + + + + - + + + + + + + + + + + + - + + - + + - + + + + + + + + + + + + - + + - + - + + + + + + - + + + + + + - + + + + + - + + + + + + + + + + + + - + + + + + + + + + + + + - - + + - + + + + + + + + + + + + - n + - - + + + - + + - + + - + + - + + - - + + + + + + - + + + + + - + + + + + - - + + + + + + + + + + + + + - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -1302,131 +1486,140 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - + + + + + + + + + - - - + + + - - + + + + + + - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - - concat("schema_name", '.', "table_name") - + dataset_contact_ff2bb406_5b18_4ab7_9fc0_3a25c3aa9675 service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."dataset_contact" - Dataset <-> Contact + Dataset <-> Contact @@ -1456,7 +1649,7 @@ def my_form_open(dialog, layer, feature): - + @@ -1473,7 +1666,7 @@ def my_form_open(dialog, layer, feature): - + @@ -1483,155 +1676,159 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - - + + + + + - - - + + + - + - - + + - - + + - + + - + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -1647,27 +1844,28 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 generatedlayout - - - - + + + + - - - - + + + + - - + + + "id" - + glossary_7235d2fd_01a3_45dc_8321_ea0dc29e55ab service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."glossary" @@ -1703,7 +1901,7 @@ def my_form_open(dialog, layer, feature): - + @@ -1720,7 +1918,7 @@ def my_form_open(dialog, layer, feature): - + @@ -1730,229 +1928,233 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - "label_en" - "description_en" - - - - + + + + + + + - - - + + + - - + + - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -1968,31 +2170,32 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 generatedlayout - - - - - - + + + + + + - - - - - - + + + + + + - - + + + "label" - + html_template_e9cca240_a640_4a7c_a9d0_a181beb9797e service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."html_template" @@ -2028,7 +2231,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2045,7 +2248,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2055,120 +2258,124 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - - + + + + + - - - + + + - - + + - + + - + - + + - - - + + + - - - + + + - - - + + + - - - + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -2184,29 +2391,30 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - + + - - - + + + - - - + + + - - + + + "section" - + link_6157b282_9882_44f3_b6a1_c133f5595d2a service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."link" @@ -2243,7 +2451,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2261,7 +2469,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2271,235 +2479,239 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - - + + + + + - - - + + + - + - - + + - + + - + + - + + + + + + + + + + + + - + + - + + - + + - + + + + + + + + + + + + - + + + + + + - + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -2515,47 +2727,48 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - - - - - - - + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - + + + "name" - + theme_3d260140_3e41_4dbe_8e79_813f3f5d3d50 service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."theme" @@ -2591,7 +2804,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2608,7 +2821,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2618,122 +2831,126 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - + + + + - - - + + + - - + + - + - - + + - + + - + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -2749,27 +2966,28 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 generatedlayout - - - - + + + + - - - - + + + + - - + + + "description" - + v_locales_f4efa77e_8eb0_4d5a_809c_d479ae6cc850 service='pgmetadata' sslmode=disable key='locale' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_locales" @@ -2796,7 +3014,7 @@ def my_form_open(dialog, layer, feature): dataset Lists the locales available in the glossary, by listing the columns label_xx of the table pgmetadata.glossary - + @@ -2812,85 +3030,90 @@ def my_form_open(dialog, layer, feature): false - + postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - + + + + - - + - - + + - + - - + - + - + - + - + - + - - + + - - + + - + - + 0 - + 0 generatedlayout - - - - + + + + + - + v_orphan_dataset_items_0fbfb83f_0c98_4391_bf51_8b5d8a362a73 service='pgmetadata' sslmode=disable key='schema_name' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_orphan_dataset_items" @@ -2926,7 +3149,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2943,7 +3166,7 @@ def my_form_open(dialog, layer, feature): - + @@ -2953,110 +3176,114 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - + + + + - - - + + + - - + + - + + - + + - + + - - - + + + - - - + + + - - - + + + - - - + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -3072,29 +3299,30 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - + + - - - + + + - - - + + + - - + + + "schema_name" || '.' || "table_name" - + v_orphan_tables_33b5eba9_96d1_442a_a32e_90a10c6fd2e5 service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_orphan_tables" @@ -3130,7 +3358,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3147,7 +3375,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3157,114 +3385,118 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - "schemaname" || '.' || "tablename" - "schemaname" - - - - + + + + + + + - - - + + + - - + + - + + - + + - + + - - - + + + - - - + + + - - - + + + - - - + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -3280,29 +3512,30 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - + + - - - + + + - - - + + + - - + + + "schemaname" || '.' || "tablename" - + v_schema_list_140f3a29_ae94_480c_932c_fb47bdad292c service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_schema_list" @@ -3338,7 +3571,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3355,7 +3588,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3365,96 +3598,100 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - - - + + + + + - - - + + + - - + + - + + - + + - - + + - - + + - - + + - - + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -3470,26 +3707,27 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - + - - + + - - + + - - + + + "schema_name" - + v_table_comment_from_metadata_d6be195f_86d0_4ef6_af4d_d1fef8a4b7f7 service='pgmetadata' sslmode=disable key='table_schema' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_table_comment_from_metadata" @@ -3516,7 +3754,7 @@ def my_form_open(dialog, layer, feature): dataset View containing the desired formatted comment for the tables listed in the pgmetadata.dataset table. This view is used by the trigger to update the table comment when the dataset item is added or modified - + @@ -3532,129 +3770,134 @@ def my_form_open(dialog, layer, feature): false - + postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - + + + + - - + - - + + - + - - + - - + - - + - - + - - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - + - + - - + + - - + + - + - + 0 - + 0 generatedlayout - - - - + + + + + - + v_table_list_48c78797_5376_47b8_90e0_8c4f8236fa44 service='pgmetadata' sslmode=disable key='id' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_table_list" @@ -3690,7 +3933,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3707,7 +3950,7 @@ def my_form_open(dialog, layer, feature): - + @@ -3717,115 +3960,119 @@ def my_form_open(dialog, layer, feature): postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - "schema_name" || '.' || "table_name" - "schema_name" - "schema_name" || '.' || "table_name" - - - - + + + + + + + + - - - + + + - - + + - + + - + + - + + - - - + + + - - - + + + - - - + + + - - - + + + - + - + - + - - - + + - + - + 0 - # -*- coding: utf-8 -*- """ QGIS forms can have a Python function that is called when the form is opened. @@ -3841,29 +4088,30 @@ from qgis.PyQt.QtWidgets import QWidget def my_form_open(dialog, layer, feature): geom = feature.geometry() control = dialog.findChild(QWidget, "MyLineEdit") -]]> + 0 tablayout - - + + - - - + + + - - - + + + - - + + + "schema_name" || '.' || "table_name" - + v_valid_dataset_4e46ef23_a5aa_441f_b21a_92bb573cbdfd service='pgmetadata' sslmode=disable key='schema_name' estimatedmetadata=true checkPrimaryKeyUnicity='1' table="pgmetadata"."v_valid_dataset" @@ -3890,7 +4138,7 @@ def my_form_open(dialog, layer, feature): dataset - + @@ -3906,109 +4154,114 @@ def my_form_open(dialog, layer, feature): false - + postgres - - - - + + + + - + - + + 1 1 1 + 0 - + - - + + + + - - + - - + + - + - - + - - + - - - - + + + - - - + + + - - - + + + - - - + + + - + - + - - + + - - + + - + - + 0 - + 0 generatedlayout - - - - + + + + + - + @@ -4071,13 +4324,13 @@ def my_form_open(dialog, layer, feature): 1 - + - + - - - + + + None @@ -4105,36 +4358,36 @@ def my_form_open(dialog, layer, feature): false - - + + - - + + false - - + + false 5000 - - + + false + + - - + + @@ -4151,18 +4404,18 @@ def my_form_open(dialog, layer, feature): - + mdouchin 2020-10-07T17:29:03 - - - - - - + + + + + + - GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 @@ -4174,19 +4427,19 @@ def my_form_open(dialog, layer, feature): - + + + + + + + + - + \ No newline at end of file diff --git a/pg_metadata/test/test_sql.py b/pg_metadata/test/test_sql.py index 1a5077cd..07e7ac89 100644 --- a/pg_metadata/test/test_sql.py +++ b/pg_metadata/test/test_sql.py @@ -374,7 +374,7 @@ def test_trigger_calculate_fields(self): self.assertEqual('LINESTRING', result[1]) self.assertEqual('EPSG:4326', result[2]) coordinates = [f.strip()[0:6] for f in result[3].split(',')] - self.assertListEqual(['3.8540', '3.8969', '43.578', '43.621'], coordinates) + self.assertListEqual(['3.854', '3.897', '43.578', '43.622'], coordinates) # Test date, creation_date is not equal to update_date sql = "SELECT creation_date, update_date FROM pgmetadata.dataset"