A simple app to calculate elevation profiles
elevationprofile uses the Python Flask framework and a handful of other python modules. See elevationprofile.py for the modules needed, and use pip to install them. You may use the provided runserver.wsgi to "connect" the app with your webserver or run elevationprofile.py --debug to start testing and debugging.
Raster files should be added in the demdata directory.
Test using curl:
curl -H "Content-type: application/json" -X POST http://localhost:5000/elevationprofile.json -d @example/example.geojson
curl -H "Content-type: text/plain" -X POST http://localhost:5000/elevationprofile.wkt -d @example/example.wkt
A web service running this code is available at kresendo.no, and turkompisen.no an example of an application using it.
Parts of the elevation profile code was first developed in a cooperation between Kresendo and the TG4NP project at the Western Norway Research Institute.