Use relative file paths in VRTs

Issue #17 resolved
Benjamin Jakimow created an issue

VRTs are generated with absolute filepaths.

In consequence, they can not be used from other systems with different roots / mount points and do not provide plattform interoperability (windows/linux)

Official response

  • Andreas Janz

    @Benjamin Jakimow like discussed, we cannot use relative pathes. But, we can copy the output folder to a new location and remap all pathes inside the VRTs from Linux to Windows.

    Use copyOutputFolder function (from force4qgis.hubforce.utils) to do this. Use the pathmap keyword to provide a list of Linux-to-Windows path tuples, that shoud be remapped.

Comments (2)

  1. Andreas Janz

    @Benjamin Jakimow like discussed, we cannot use relative pathes. But, we can copy the output folder to a new location and remap all pathes inside the VRTs from Linux to Windows.

    Use copyOutputFolder function (from force4qgis.hubforce.utils) to do this. Use the pathmap keyword to provide a list of Linux-to-Windows path tuples, that shoud be remapped.

  2. Log in to comment