diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-11-08 22:53:30 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-11-08 22:53:30 +0200 |
commit | 08c56644ebfd694c3f57de1e9b9e7afcfef1dba2 (patch) | |
tree | 1b37ff751f0825b4e7b31acc1f74572b5317ea21 /core | |
parent | ca289afe68b403b96c14f37fb473886be2541a4f (diff) | |
download | troggle-08c56644ebfd694c3f57de1e9b9e7afcfef1dba2.tar.gz troggle-08c56644ebfd694c3f57de1e9b9e7afcfef1dba2.tar.bz2 troggle-08c56644ebfd694c3f57de1e9b9e7afcfef1dba2.zip |
Make maps an 'unvarnished' url
Diffstat (limited to 'core')
-rw-r--r-- | core/utils.py | 15 | ||||
-rw-r--r-- | core/views/expo.py | 6 |
2 files changed, 18 insertions, 3 deletions
diff --git a/core/utils.py b/core/utils.py index 5d2d262..a76f41f 100644 --- a/core/utils.py +++ b/core/utils.py @@ -344,6 +344,21 @@ def find_nearest_point(points, target_point): nearest_distance = math.sqrt(nearest_distance_squared) return nearest_point_alt, nearest_distance +# This data was extarcted by Radost: +# The original source of heights (and positions is the file) +# loser/surface/terrain/SRTM-7x9-M31-482-279-offset.svx +""" +; Survex terrain data created by TerrainTool version 1.12a from Shuttle Radar Topography Mission data +; SRTM DEM data is public-domain. +; Used coordinate system AustrianM31 with ellipsoid "Bessel 1841" and datum "MGI Datum (Austria)" +; Grid centred at XXX 488000 283750 +; Lat/Long of centre = 47.691318 13.838777 ( 13 E 50' 19.6" 47 N 41' 28.7") relative to WGS84/GRS80 datum +; Grid convergence at centre = -0.374 degrees ( 0 W 22' 27.9") +; Point scale factor at centre = 1.0000177 +; Output offset by adding (-450000.00,-200000.00, 0.00) to calculated results; +; TerrainTool (c) 2008 - 2012 Mike McCombe +""" +#let raw = [[406264.72, 5278037.57, 873.53], rawheights = [[406264.72, 5278037.57, 873.53], [406314.69, 5278036.50, 861.60], [406364.66, 5278035.43, 852.51], diff --git a/core/views/expo.py b/core/views/expo.py index 900ca32..1ff8824 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -60,13 +60,13 @@ def spider(request, _): return redirect("/?#") # so that suffixes applied by spider are no longer part of the url def map(request): - """Serves unadorned the expoweb/map/map.html file""" - fn = Path(settings.EXPOWEB, "map", "map.html") + """Serves unadorned the expoweb/map/slippy/map.html file""" + fn = Path(settings.EXPOWEB, "map", "slippy", "map.html") return HttpResponse(content=open(fn, "r"), content_type="text/html") def mapfile(request, path): - """Serves unadorned file""" + """Serves unadorned file: everything in the /map/... folder tree""" fn = Path(settings.EXPOWEB, "map", path) return HttpResponse(content=open(fn, "r"), content_type=getmimetype(fn)) |