Skip to content

accept local file paths #287

Description

@benehiebl

If the assets are stored locally and href is not a http(s) URL, the plugin cant load the data because it uses vsicurl by default.
could be fixed in assets_dialog.py load_asset() by adding something like:

is_remote_href = asset.href.startswith(('http://', 'https://'))
asset_href = f"{self.vis_url_string}{asset.href}" if is_remote_href else asset.href

instead of:
asset_href = f"{self.vis_url_string}" \
f"{asset.href}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions