Skip to content

Commit

Permalink
As reviewed by karl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias authored and Landscapelab committed Mar 8, 2022
1 parent 2a33e9f commit b0906cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ addons/pythonscript

# Python-specific
*/__pycache__

# Geodata should not be pushed to the repo
Geodata/*
4 changes: 2 additions & 2 deletions Layers/ExternalLayer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand All @@ -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)
Expand Down

0 comments on commit b0906cd

Please sign in to comment.