<div>With mapserver map file and postgis,</div><div>I need to construct st_slope postgis raster and then display it with mapserver dynamically</div><div><br></div><div>that is to say how can I operate following postgis expression in mapserver map file?</div><div><br></div><div>WITH r AS ( -- union of filtered tiles SELECT</div><div>206</div><div>ST_Transform(ST_Union(srtm.rast), 3310) AS rast FROM srtm</div><div>JOIN sfpoly sf</div><div><div>stom extent</div><div>SELECT ST_AsRaster(ST_Transform(sf.geom, 3310), r.rast) AS</div><div>rast FROM sfpoly sf</div><div>CROSS JOIN r</div><div>)SELECT ST_Clip(ST_Slope(r.rast, 1, cx.rast), S</div><div>T_Transform(sf.geom, 3310)) AS rast FROM r</div><div>CROSS JOIN cx</div><div>CROSS JOIN sfpoly sf;</div></div><div><br></div><div>regards</div><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div>Ahmet Temiz<br>Jeoloji Müh.<br>Afet ve Acil Durum Yönetimi Başkanlığı<br>Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu<br><br><br>________________________<br><br>Ahmet Temiz<br>Geological Eng.<br>Information Systems - GIS Group<br>Disaster and Emergency Management<br>of Presidency</div></div></div></div><br>