Compare commits
2 Commits
f27e8e6c3d
...
61dfb28087
Author | SHA1 | Date | |
---|---|---|---|
61dfb28087 | |||
0dd87feab5 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.pyc
|
||||
*.zip
|
@ -288,13 +288,15 @@ class Orientation:
|
||||
else:
|
||||
deleted_fields.append(field_name)
|
||||
|
||||
# On réexplose les champs sans doublons
|
||||
layer = processing.run("native:explodehstorefield",
|
||||
parameters={"INPUT": layers[osm_name],
|
||||
"FIELD": "other_tags",
|
||||
"OUTPUT": "memory:",
|
||||
"EXPECTED_FIELDS": ",".join(expected_fields)},
|
||||
context=context)["OUTPUT"]
|
||||
# S'il y a des doublons
|
||||
if len(deleted_fields) > 0:
|
||||
# On réexplose les champs sans doublons
|
||||
layer = processing.run("native:explodehstorefield",
|
||||
parameters={"INPUT": layers[osm_name],
|
||||
"FIELD": "other_tags",
|
||||
"OUTPUT": "memory:",
|
||||
"EXPECTED_FIELDS": ",".join(expected_fields)},
|
||||
context=context)["OUTPUT"]
|
||||
|
||||
# On enregistre le layer dans le gpkg
|
||||
options.layerName = layer_name
|
||||
|
Loading…
Reference in New Issue
Block a user