<div dir="ltr"><div><div>Hey,<br></div>you can do it using plpython and python gdal binding.<br></div>It could be a first step to evaluate if it is fast enough for you.<br>Cheers,<br>Rémi-c<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-08-22 22:09 GMT+02:00 Rasmus Aveskogh <span dir="ltr"><<a href="mailto:rasmus@defero.se" target="_blank">rasmus@defero.se</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><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" target="_blank">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" target="_blank">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>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-ra</div></font></span></div><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>