From 8cd26788627f44f100d5fd0f7bee0299c71f505e Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 28 Sep 2023 00:02:26 +0200 Subject: Create symlinks for topo maps. Having relative files as datasource makes the project more portable. --- gis-observation-map | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gis-observation-map') diff --git a/gis-observation-map b/gis-observation-map index c5889e4..e02eef5 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -677,6 +677,11 @@ if args.topo_basedir is not None: if not d.is_dir(): continue + if args.project_home is not None: + l = Path(args.project_home).expanduser().joinpath(topo) + l.symlink_to(d, target_is_directory=True) + d = l + idx = d.joinpath('index.geojson') if idx.is_file(): tiles = idx_intersects(idx.as_posix(), geometries) -- cgit v1.2.3