Open-Elevation instance on Windows?
Hi! May I host Open-Elevation on Windows. If this possible, how?
Hi! I made this, but only partly. I used Windows versions of GDAL, Rtree (from Unofficial Windows Binaries for Python Extension Packages) and simple http-sever from Python Network Programming Cookbook of Dr. M. O. Faruque Sarker. I see in Open-Elevation are used Python>3.5 and, maybe NumPy. Is it this?
Hi!
I only tested open-elevation on macOS and Linux. You can check our dependencies here https://github.com/Jorl17/open-elevation/blob/master/requirements.txt
The bulk of the logic is in https://github.com/Jorl17/open-elevation/blob/master/gdal_interfaces.py and the server-side logic is in https://github.com/Jorl17/open-elevation/blob/master/server.py
The following are important factors:
- Data should be split in several files to reduce RAM requirements
- A fast index should be used to locate the appropriate file, given a coordinate
- Given that close coordinates are usually searched together, we should have a spatial cache
As such, the logic is to initially go through all files found in the data folder and build said index.
In theory, if you grab all the dependencies we used, it should be possible to run this in Windows. Did you try to install all the dependencies and running it?
Hi! I modfyied gdal_interfaces.py for works without NumPy and use data from http://srtm.csi.cgiar.org/, when data divided on small geotiffs. I downloaded and uncompressed it manually. Combination of GDAL, Rtree (from Unofficial Windows Binaries for Python Extension Packages) and simple http-sever (I don't familiar width servers) work on local server. I made this before my previous message. By I don't know how to install Gunicorn on Windows. May be, need to use another http-server?