I need to calculate a raster profile along a linestring. <div>The only way I've found is using ST_Intersection(rast,geom) but it seems to provide poor perfomances (even with ST_Intersects), probably because of the rast->geom conversion.</div>
<div>Is there a better way to do it?</div><div><br></div><div>My query is:</div><div>> select st_intersection(rast,the_geom) from dem,profile where st_intersects (rast,the_geom)</div><div>I have the gist index both on rast and the_geom.</div>
<div><br></div><div>giovanni</div>