aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-05-21 14:15:12 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-05-21 14:26:38 +0200
commitd3df2c2ef8d253ffa3365d0eec326bb611b9b7e2 (patch)
tree9e82668a3015558ee7e8a773d7e0c275f25806f6 /webmap-import
parent41118a39c0123505487b43697fa411df33467b90 (diff)
Factor out densification logic from getExtent() into own function.
And only densify if needs be. Most sources are already in SWEREF 99 (modulo axis mapping strategy) so in pratice we can use mere rectangles as spatial filters.
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import4
1 files changed, 2 insertions, 2 deletions
diff --git a/webmap-import b/webmap-import
index f20fdef..dafff78 100755
--- a/webmap-import
+++ b/webmap-import
@@ -613,7 +613,7 @@ def main() -> NoReturn:
# get configured Spatial Reference System and extent
srs = getSRS(config.get('SRS', None))
- extent = getExtent(config.get('extent', None), srs=srs)[0]
+ extent = getExtent(config.get('extent', None), srs=srs)
if args.lockfile is not None:
# obtain an exclusive lock and don't release it until exiting the program
@@ -711,8 +711,8 @@ def main() -> NoReturn:
finally:
lyr_cache = None
dso = None
- srs = None
extent = None
+ srs = None
sys.exit(rv)
gdal.UseExceptions()