Skip to content

Commit

Permalink
store spacial file always true for cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Oct 22, 2024
1 parent 9c971cf commit 7cce405
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion importer/handlers/common/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def extract_params_from_data(_data, action=None):
"""
if action == exa.COPY.value:
title = json.loads(_data.get("defaults"))
return {"title": title.pop("title")}, _data
return {"title": title.pop("title"), "store_spatial_file": True}, _data

return {
"skip_existing_layers": _data.pop("skip_existing_layers", "False"),
Expand Down
2 changes: 1 addition & 1 deletion importer/handlers/common/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def extract_params_from_data(_data, action=None):
"""
if action == exa.COPY.value:
title = json.loads(_data.get("defaults"))
return {"title": title.pop("title")}, _data
return {"title": title.pop("title"), "store_spatial_file": True}, _data

return {
"source": _data.pop("source", "upload"),
Expand Down
2 changes: 1 addition & 1 deletion importer/handlers/common/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def extract_params_from_data(_data, action=None):
"""
if action == exa.COPY.value:
title = json.loads(_data.get("defaults"))
return {"title": title.pop("title")}, _data
return {"title": title.pop("title"), "store_spatial_file": True}, _data

return {
"skip_existing_layers": _data.pop("skip_existing_layers", "False"),
Expand Down
2 changes: 1 addition & 1 deletion importer/handlers/shapefile/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def extract_params_from_data(_data, action=None):
"""
if action == exa.COPY.value:
title = json.loads(_data.get("defaults"))
return {"title": title.pop("title")}, _data
return {"title": title.pop("title"), "store_spatial_file": True}, _data

additional_params = {
"skip_existing_layers": _data.pop("skip_existing_layers", "False"),
Expand Down
2 changes: 1 addition & 1 deletion importer/handlers/tiles3d/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def extract_params_from_data(_data, action=None):
"""
if action == exa.COPY.value:
title = json.loads(_data.get("defaults"))
return {"title": title.pop("title")}, _data
return {"title": title.pop("title"), "store_spatial_file": True}, _data

return {
"skip_existing_layers": _data.pop("skip_existing_layers", "False"),
Expand Down

0 comments on commit 7cce405

Please sign in to comment.