This repository contains the code for the 3D Application (Materials and Textures aren't included due to the huge size of assets, merged all code in a project for code only.)
This repo contains the code for the web map
importstruct | |
defget_sample(filename, n, e): | |
i=1201-int(round(n/3, 0)) | |
j=int(round(e/3, 0)) | |
withopen(filename, "rb") asf: | |
f.seek(((i-1) *1201+ (j-1)) *2) | |
buf=f.read(2) | |
val=struct.unpack('>h', buf) | |
ifnotval==-32768: | |
returnval | |
else: | |
returnNone | |
if__name__=="__main__": | |
n=24*60+34.690250937530934 | |
e=55*60+11.153526306152346 | |
tile="N34E011.hgt" | |
printget_sample(tile, n, e) |