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]]+proj=longlat +datum=WGS84 +no_defs34524326EPSG:4326WGS 84longlatEPSG:7030truetest_ca3acbe3_14da_4473_891f_3d5b27c828cfdegrees-0.45944193912063147-0.652395715896279871.640558060879368171.447604284103719770GEOGCRS["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]]+proj=longlat +datum=WGS84 +no_defs34524326EPSG:4326WGS 84longlatEPSG:7030true00011test_ca3acbe3_14da_4473_891f_3d5b27c828cf?query=SELECT%201%20AS%20id,%20geom_from_wkt('LINESTRING%20(0%200,1%200,1%201,0%201,0%200)')%20AS%20geometrytest00false00falsevirtual1110010# -*- coding: utf-8 -*-
"""
Les formulaires QGIS peuvent avoir une fonction Python qui sera appelée à l'ouverture du formulaire.
Utilisez cette fonction pour ajouter plus de fonctionnalités à vos formulaires.
Entrez le nom de la fonction dans le champ "Fonction d'initialisation Python".
Voici un exemple à suivre:
"""
from qgis.PyQt.QtWidgets import QWidget
def my_form_open(dialog, layer, feature):
geom = feature.geometry()
control = dialog.findChild(QWidget, "MyLineEdit")
0generatedlayout"id"2552552552550255255EPSG:7030m2meters501630falsefalse0falsefalsetrue0255,0,0,255falsetrue21KRAUS Alban2023-01-18T16:02:25