<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">Ciao a tutti,<div><br></div><div>sto provando senza nessun risultato a riclassificare il raster dell'uso del suolo con questo comando</div><div><br></div><div>
<div>CREATE TABLE qne.test_raster as SELECT<br>
</div><div>rid,</div><div>ST_MapAlgebra(rast,'CASE WHEN rast BETWEEN 101::integer and 115::integer THEN rast WHEN rast BETWEEN 102::integer and 166::integer THEN 0::integer</div><div>ELSE 0::integer </div><div>END')</div>

<div>AS rast from qne.qne_rstr</div></div><div><br></div><div>l'intento sarebbe di portare tutti i valori compresi tra 101 e 115 a zero e lasciare invariati i valori definiti nel BETWEEN, ma il comando mi restituisce questo errore </div>

<div><pre style="margin-top:12px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">"function st_mapalgebra(raster, unknown) does not exist</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">LINE 4: ST_MapAlgebra(rast,'CASE WHEN rast BETWEEN 101::integer and ...</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="font-family:'Courier New,courier'">HINT:  No function matches the given name and argument types. You might need to add explicit type casts</span><span style="font-family:'Courier New,courier'">"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"><br></span></pre>se elimino il cast  l'errore č sempre lo stesso: <pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"><br>

</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">"function st_mapalgebra(raster, unknown) does not exist</span><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">LINE 4: ST_MapAlgebra(rast,'CASE WHEN rast BETWEEN 101 and 115r THEN...</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'">HINT:  No function matches the given name and argument types. You might need to add explicit type casts."</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre></pre></div><div>Avete qualche suggerimento in merito?</div>

<div><br></div><div>Grazie in anticipo </div><span class="HOEnZb"><font color="#888888"><div>Romina</div></font></span></div>
</div><br></div>