mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-13 01:21:41 +00:00
Radost updates
This commit is contained in:
14
map/tools/extract_height_data.py
Normal file
14
map/tools/extract_height_data.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# This software is MIT licensed
|
||||
# by Radost Waszkiewicz 2023
|
||||
#
|
||||
# This script extracts height information from a .3d file
|
||||
# and formats it into an array that will later be used by
|
||||
# a javascript web tool.
|
||||
|
||||
import survex3dreader
|
||||
import pprint
|
||||
|
||||
data = survex3dreader.read_svx_file("1623-and-1626-with-terrain.3d")
|
||||
surface_grid = [x for x in data["station_list"] if "srtm" in x[1]]
|
||||
# meters to centimeters
|
||||
pprint.pprint([[x[0][0] / 100, x[0][1] / 100, x[0][2] / 100] for x in surface_grid])
|
||||
Reference in New Issue
Block a user