<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi!</div><div><br></div><div>How hard/feasible would it be to implement elevation profile/drape line functionality in PostGIS? Since PostGIS already depends on GDAL I assume making use of the GDAL API would make this quite easy, such as in the Zoo-Project service:</div><div><br></div><div><a href="http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/gdal/profile/service.c">http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/gdal/profile/service.c</a></div><div><br></div><div>Providing functionality that could eventually be used for applications like: <a href="http://www.zoo-project.org/site/ZooWebSite/Demo/GdalProfile">http://www.zoo-project.org/site/ZooWebSite/Demo/GdalProfile</a> (using the code above)</div><div><br></div><div>I’m currently using an ad-hoc PostGIS-function to pull out elevation profiles from my rasters, but it’s quite slow and CPU intensive and as such does not make a good fit as a backend service for a web application like the above.</div><div><br></div><div>-ra</div></body></html>