aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-09-28 00:02:26 +0200
committerGuilhem Moulin <guilhem@fripost.org>2023-09-28 00:23:05 +0200
commit8cd26788627f44f100d5fd0f7bee0299c71f505e (patch)
treea469d378a90ac2ba90c611f09f9f64d199720ed4
parent41a98b7737428e3a691f00569e91ba1481180aff (diff)
Create symlinks for topo maps.
Having relative files as datasource makes the project more portable.
-rwxr-xr-xgis-observation-map5
1 files changed, 5 insertions, 0 deletions
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)