<div dir="ltr"><div class="gmail_default" style="font-size:small">hello</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My slope calculation is very slow.<br></div><div class="gmail_default" style="font-size:small">Can you advice me any better way to speed up slope calculation.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">here is the way I have used. </div><div class="gmail_default" style="font-size:small">-------</div><div class="gmail_default"><div class="gmail_default">Hibernate: </div><div class="gmail_default"> CREATE VIEW vslp8 AS </div><div class="gmail_default"> WITH r AS ( select</div><div class="gmail_default"> ST_Transform(ST_Union(dem.rast), 32635) AS rast </div><div class="gmail_default"> FROM</div><div class="gmail_default"> rdem2 as dem </div><div class="gmail_default"> where</div><div class="gmail_default"> st_Intersects( st_transform(dem.rast, 32635) , ST_Transform( ST_GeomFromText('POLYGON((28.87774 40.44479446,28.87774 40.755545,29.4603534 40.755545,29.4603534 40.44479446,28.87774 40.44479446))',4326 ),32635))),</div><div class="gmail_default"><br></div><div class="gmail_default">cx AS (SELECT</div><div class="gmail_default"> ST_AsRaster( sf.the_geom, r.rast) AS rast </div><div class="gmail_default"> FROM</div><div class="gmail_default"> ( SELECT</div><div class="gmail_default"> ST_Transform( ST_GeomFromText('POLYGON((28.87774 40.44479446,28.87774 40.755545,29.4603534 40.755545,29.4603534 40.44479446,28.87774 40.44479446))',</div><div class="gmail_default"> 4326 ),</div><div class="gmail_default"> 32635) AS the_geom ) sf CROSS </div><div class="gmail_default"> JOIN r ) </div><div class="gmail_default"> SELECT</div><div class="gmail_default"> ST_Clip(ST_Slope(r.rast, 1, cx.rast),</div><div class="gmail_default"> ST_Transform( ST_GeomFromText('POLYGON((28.87774 40.44479446,28.87774 40.755545,29.4603534 40.755545,29.4603534 40.44479446,28.87774 40.44479446))',</div><div class="gmail_default"> 4326 ), 32635)) AS rast </div><div class="gmail_default"> FROM</div><div class="gmail_default"> r CROSS </div><div class="gmail_default"> JOIN cx </div><div class="gmail_default"><br></div><div class="gmail_default">-----</div><div class="gmail_default"><br></div><div class="gmail_default" style>I will appreciate if you propose any way.</div><div class="gmail_default" style><br></div><div class="gmail_default" style>regards</div></div><div><br></div>-- <br><div class="gmail_signature"><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></div>
</div>