Skip to content

Commit

Permalink
Merge pull request #424 from ign-packo/fix_qview
Browse files Browse the repository at this point in the history
Fix qview for latest qgis api ltr
  • Loading branch information
amrosu authored Jun 25, 2024
2 parents 0c4bd7d + d512a6b commit 645e63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Si un cache a une taille de dalle (slabSize) différente de 16x16 tuiles ou une

## Préparation des éléments de la vue PackO pour QGIS

Dans le cas d'utilisation d'un client pour PackO basé sur QGIS, on peut créer automatiquement la vue contenant les éléments du chantier en utilisant le script **create_qgis_view.py** :
Dans le cas d'utilisation d'un client pour PackO basé sur QGIS (version minimale 3.34), on peut créer automatiquement la vue contenant les éléments du chantier en utilisant le script **create_qgis_view.py** :
````
usage: create_qgis_view.py [-h] [-u URL] -c CACHE_ID [-b BRANCH_NAME] [-s {RVB,IR,IRC}] [-o OUTPUT] [-z ZOOM_PIVOT] [--vect VECT] [--bbox BBOX BBOX BBOX BBOX] [-m MACROS] [-v VERBOSE]
Expand Down
4 changes: 2 additions & 2 deletions scripts/process_qlayers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
""" This script handles QGIS layers """

from qgis.core import QgsRasterLayer, QgsVectorLayer, QgsVectorFileWriter
from qgis.core import QgsRasterLayer, QgsVectorLayer, QgsVectorFileWriter, QgsEditFormConfig


def add_layer_to_map(data_source, layer_name, qgs_project, provider_name,
Expand All @@ -15,7 +15,7 @@ def add_layer_to_map(data_source, layer_name, qgs_project, provider_name,
qgs_project.addMapLayer(layer, show)
if disable_att_form_popup is True:
form_config = layer.editFormConfig()
form_config.setSuppress(1)
form_config.setSuppress(QgsEditFormConfig.SuppressOn)
layer.setEditFormConfig(form_config)
return layer

Expand Down

0 comments on commit 645e63b

Please sign in to comment.