Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptation for model baker version > 6.4 #112

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qgepqwat2ili/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from qgis.core import Qgis, QgsProject, QgsSettings
from qgis.PyQt.QtWidgets import QApplication, QFileDialog, QProgressDialog, QPushButton
from qgis.utils import iface, plugins
from QgisModelBaker.libili2db import globals, ili2dbconfig, ili2dbutils
from QgisModelBaker.libs.modelbaker.iliwrapper import globals, ili2dbconfig, ili2dbutils

from ....utils.qgeplayermanager import QgepLayerManager
from .. import config
Expand Down
2 changes: 2 additions & 0 deletions qgepqwat2ili/qgep/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def create_metaattributes(row):
# OD : is this OK ? Don't we need a different t_id from what inserted above in organisation ? if so, consider adding a "for_class" arg to tid_for_row
t_id=get_tid(row),
t_seq=0,
t_basket=0,
)
abwasser_session.add(metaattribute)

Expand All @@ -116,6 +117,7 @@ def base_common(row, type_name):
"t_type": type_name,
"obj_id": row.obj_id,
"t_id": get_tid(row),
"t_basket": 0,
}

def wastewater_structure_common(row):
Expand Down
1 change: 1 addition & 0 deletions qgepqwat2ili/utils/ili2db.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create_ili_schema(schema, model, log_path, recreate_schema=False):
"--createFk",
"--createFkIdx",
"--createTidCol",
"--createBasketCol",
"--importTid",
"--noSmartMapping",
"--defaultSrsCode",
Expand Down