open-elevation icon indicating copy to clipboard operation
open-elevation copied to clipboard

Open-Elevation instance on Windows?

Open IMMSPgisgroup opened this issue 7 years ago • 3 comments

Hi! May I host Open-Elevation on Windows. If this possible, how?

IMMSPgisgroup avatar Feb 28 '18 13:02 IMMSPgisgroup

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?

IMMSPgisgroup avatar Mar 06 '18 20:03 IMMSPgisgroup

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:

  1. Data should be split in several files to reduce RAM requirements
  2. A fast index should be used to locate the appropriate file, given a coordinate
  3. 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?

Jorl17 avatar Mar 12 '18 02:03 Jorl17

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?

IMMSPgisgroup avatar Mar 16 '18 12:03 IMMSPgisgroup