<div dir="ltr"><div class="gmail_extra">Ciao Luca, <br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 9:50 PM, Luca Lanteri <span dir="ltr"><<a href="mailto:mescal72@gmail.com" target="_blank">mescal72@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>dalla finestra sql del DBManager è possibile caricare un raster?</div></div></blockquote><div><br>
</div>
<div>no, non è possibile:<br>sebbene  già aggiunto 2 checkbox, una per i vettori e l'altra per i raster, quella <br>funzionalità usa il provider "postgres" che supporta solo i vettori, per tal motivo <br></div>

<div>le 2 checkbox sono nascoste.<br></div><div><br></div><div>Unico modo per caricare un PG raster in DBManager è crearlo e poi caricarlo <br>(viene usato il provider "gdal").<br><br></div><div>Saluti.<br></div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>sto provando la seguente query </div><div>
<p style="margin:0px"><br></p><p style="margin:0px">SELECT r.rid, r.rast</p>
<p style="margin:0px">FROM </p>
<p style="margin:0px">raster r,</p>
<p style="margin:0px">  vector v</p>
<p style="margin:0px">WHERE <a href="http://v.id" target="_blank">v.id</a> =2 AND st_intersects(r.rast,v.the_geom)</p><p style="margin:0px"><br></p><p style="margin:0px">ma nel log di qgis trovo qs errore: </p><p style="margin:0px">

</p>
<p style="margin:0px">Interrogazione errata: SELECT DISTINCT CASE WHEN upper(geometrytype("rast")) IN ('POINT','MULTIPOINT','POINTM','MULTIPOINTM') THEN 'POINT' WHEN upper(geometrytype("rast")) IN ('LINESTRING','MULTILINESTRING','LINESTRINGM','MULTILINESTRINGM') THEN 'LINESTRING' WHEN upper(geometrytype("rast")) IN ('POLYGON','MULTIPOLYGON','POLYGONM','MULTIPOLYGONM') THEN 'POLYGON' END, st_srid("rast") FROM raster ha restituito 7 [ERROR:  function geometrytype(raster) does not exist</p>


<p style="margin:0px">LINE 1: SELECT DISTINCT CASE WHEN upper(geometrytype("rast")) IN ('P...</p><p style="margin:0px">                                        ^</p><p style="margin:0px">HINT:  No function matches the given name and argument types. You might need to add explicit type casts.</p>


<p style="margin:0px">]</p><p style="margin:0px"><br></p><p style="margin:0px">al momento sono implementati solo i vettori o sto sbagliando qualcosa ?</p><p style="margin:0px">scusate ma sono ai primi tentativi....</p><span class="HOEnZb"><font color="#888888"><p style="margin:0px">


<br></p><p style="margin:0px">^L^</p><p style="margin:0px"><br></p><p></p></font></span></div></div>
<br>_______________________________________________<br>
<a href="mailto:Gfoss@lists.gfoss.it">Gfoss@lists.gfoss.it</a><br>
<a href="http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss" target="_blank">http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss</a><br>
Questa e' una lista di discussione pubblica aperta a tutti.<br>
I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.<br>
638 iscritti al 28.2.2013<br></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli
</div></div>