From b0906cda42c3df6e6fbe685764412547d62b2471 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 8 Mar 2022 16:21:30 +0100 Subject: [PATCH] As reviewed by karl --- .gitignore | 3 --- Layers/ExternalLayer.gd | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9103cb73b..c7516fba1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,3 @@ addons/pythonscript # Python-specific */__pycache__ - -# Geodata should not be pushed to the repo -Geodata/* \ No newline at end of file diff --git a/Layers/ExternalLayer.gd b/Layers/ExternalLayer.gd index c8c5aa11c..23a61a61c 100644 --- a/Layers/ExternalLayer.gd +++ b/Layers/ExternalLayer.gd @@ -3,7 +3,7 @@ extends Resource var external_types = ["shp", "json", "tif", "wmts"] -const path_prefix := "res://Geodata" +const path_prefix := "user://Geodata" const LOG_MODULE := "EXTERNAL_LAYER" @@ -22,7 +22,7 @@ func external_to_geolayer_from_type(db, config: Dictionary): if not type in external_types: logger.error( """Unexpected file-extension \"%s\" for external layer. - Supported types: %s""" % [type, external_types]) + Supported types: %s""" % [type, external_types], LOG_MODULE) return return call("geolayer_from_%s" % type, path, config)