Advertisement
Guest User

Untitled

a guest
Jan 4th, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT ST_AsText(                              
  2.      ST_MakeLine(                      --  <co id="co_code_st_value_3d_1" /> --
  3.           ST_Translate(   --  <co id="co_code_st_value_3d_2" /> --
  4.             ST_Force3D( (gd).geom ),  --  <co id="co_code_st_value_3d_3" /> --
  5.                0,0,
  6.                COALESCE(ST_Value(rast, (gd).geom), 0)  --  <co id="co_code_st_value_3d_4" /> --
  7.           )
  8.         )
  9. ) As line_3dwkt
  10. FROM (SELECT
  11.     ST_DumpPoints(   --  <co id="co_code_st_value_3d_5" /> --
  12.      ST_GeomFromText('LINESTRING(444210 2438785,                
  13.          434125 2448785,  466666 2449780,
  14.          47000 2459000)',
  15.           26904 )
  16.         ) As gd
  17.    )
  18.     As trail
  19.      LEFT JOIN ch12.kauai
  20.      ON ST_Intersects(rast, (gd).geom); --  <co id="co_code_st_value_3d_6" /> --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement