[Gfoss] Riclassificare raster in Postgis
Romina Di Paolo
romi.dipaolo a gmail.com
Lun 7 Apr 2014 21:57:08 CEST
Ciao a tutti,
sto provando senza nessun risultato a riclassificare il raster dell'uso del
suolo con questo comando
CREATE TABLE qne.test_raster as SELECT
rid,
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
ELSE 0::integer
END')
AS rast from qne.qne_rstr
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
"function st_mapalgebra(raster, unknown) does not exist
LINE 4: ST_MapAlgebra(rast,'CASE WHEN rast BETWEEN 101::integer and ...
HINT: No function matches the given name and argument types. You
might need to add explicit type casts"
se elimino il cast l'errore รจ sempre lo stesso:
"function st_mapalgebra(raster, unknown) does not exist
LINE 4: ST_MapAlgebra(rast,'CASE WHEN rast BETWEEN 101 and 115r THEN...
HINT: No function matches the given name and argument types. You
might need to add explicit type casts."
Avete qualche suggerimento in merito?
Grazie in anticipo
Romina
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: <http://lists.gfoss.it/pipermail/gfoss/attachments/20140407/99a5d40a/attachment.html>
Maggiori informazioni sulla lista
Gfoss