Skip to content

Commit

Permalink
gpkgMultiGeomPerTable concerning settings
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Oct 21, 2024
1 parent 9b449e0 commit ffa1465
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modelbaker/iliwrapper/ili2dbconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def __init__(self, other: Ili2DbCommandConfiguration = None):
self.create_import_tid = True
self.srs_auth = "EPSG" # Default SRS auth in ili2db
self.srs_code = 2056 # Default SRS code in ili2db
self.create_gpkg_multigeom = False
self.stroke_arcs = True
self.pre_script = ""
self.post_script = ""
Expand Down Expand Up @@ -298,14 +299,17 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
elif self.db_ili_version is None or self.db_ili_version > 3:
self.append_args(args, ["--strokeArcs=False"])

if self.tool == DbIliMode.gpkg:
if self.create_gpkg_multigeom:
self.append_args(args, ["--gpkgMultiGeomPerTable"], True)
elif self.db_ili_version is None or self.db_ili_version > 3:
self.append_args(args, ["--gpkgMultiGeomPerTable=False"])

if self.create_basket_col:
self.append_args(args, ["--createBasketCol"])
elif self.db_ili_version is None or self.db_ili_version > 3:
self.append_args(args, ["--createBasketCol=False"])

if self.tool == DbIliMode.gpkg:
self.append_args(args, ["--gpkgMultiGeomPerTable"], True)

self.append_args(args, ["--defaultSrsAuth", self.srs_auth])

self.append_args(args, ["--defaultSrsCode", "{}".format(self.srs_code)])
Expand Down

0 comments on commit ffa1465

Please sign in to comment.