<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif;font-size:large">SO - windows 10 64bit.</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">R 3.2.2 da cui:</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><div class="gmail_default">> .libPaths() </div><div class="gmail_default">[1] "C:/Users/nomeutente/Documents/R/win-library/3.2"</div><div class="gmail_default">[2] "C:/Program Files/R/R-3.2.2/library" </div></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">alcune osservazioni (prove effettuate con geoalgoritmi: Histogram, Summary statics):</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">1. layer 'postgis_view' con tipo di dato 'qlonglong' dà sempre output vuoto;</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">2. opzioni di processing R utilizzate:</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">       a.  Cartella R : C:\Program Files\R\R-3.2.2;</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">       b.  Cartella della libreria di R : C:\Users\nomeutente\Documents\R\win-library\3.2;</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">       c.  Cartella script R: C:\Users\nomeutente\.qgis2\processing\rscripts.</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">3.  nei 'log' è sempre presente:</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">per il geoalgoritmo <b>Summary_statistics:</b></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><b><br></b></div><div class="gmail_default" style=""><div class="gmail_default" style=""><font face="garamond, serif" size="4">2015-12-01T18:44:32<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>Comandi di esecuzione R</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>options("repos"="<a href="http://cran.at.r-project.org/">http://cran.at.r-project.org/</a>")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                     </span>.libPaths("C:/Users/Salvatore/Documents/R/win-library/3.2")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>tryCatch(find.package("rgdal"), error=function(e) install.packages("rgdal", dependencies=TRUE))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>tryCatch(find.package("raster"), error=function(e) install.packages("raster", dependencies=TRUE))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>library("raster")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>library("rgdal")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                 </span>Layer = readOGR("C:/Users/SALVAT~1/AppData/Local/Temp/processinga6c0ea2d8af34a348d818540a1ed682e/6d8cc8a91b8b4dcd8538863e7c77c7c6",layer="<u>ganagrafiche</u>")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>Field="nri_anagr"</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>Summary_statistics<-data.frame(rbind(sum(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                       </span>length(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>length(unique(Layer[[Field]])),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>min(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                       </span>max(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                       </span>max(Layer[[Field]])-min(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                   </span>mean(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>median(Layer[[Field]]),</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>sd(Layer[[Field]])),row.names=c("Sum:","Count:","Unique values:","Minimum value:","Maximum value:","Range:","Mean value:","Median value:","Standard deviation:"))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>colnames(Summary_statistics)<-c(Field)</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                  </span><b>Summary_statistics</b></font></div><div class="gmail_default" style=""><span class="" style="white-space:pre"><font face="garamond, serif" size="4"><br></font></span></div><div class="gmail_default" style=""><span class="" style="white-space:pre"><span style="font-family:garamond,serif;font-size:large">per il geoalgoritmo </span><b style="font-family:garamond,serif;font-size:large">Histogram:</b><font face="garamond, serif" size="4">          </font></span></div><div class="gmail_default" style=""><span class="" style="white-space:pre"><font face="garamond, serif" size="4">                   </font></span></div><div class="gmail_default" style=""><font face="garamond, serif" size="4">2015-12-01T18:40:31<span class="" style="white-space:pre">        </span>0<span class="" style="white-space:pre"> </span>Comandi di esecuzione R</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                    </span>options("repos"="<a href="http://cran.at.r-project.org/">http://cran.at.r-project.org/</a>")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                     </span>.libPaths("C:/Users/Salvatore/Documents/R/win-library/3.2")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>tryCatch(find.package("rgdal"), error=function(e) install.packages("rgdal", dependencies=TRUE))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>tryCatch(find.package("raster"), error=function(e) install.packages("raster", dependencies=TRUE))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>library("raster")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                        </span>library("rgdal")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                 </span>Layer = readOGR("C:/Users/SALVAT~1/AppData/Local/Temp/processinga6c0ea2d8af34a348d818540a1ed682e/e3bde974e7414e1e8503f803196e8dd3",layer="<u>vnroconcessionitomba2</u>")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                   </span>Field="nro"</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                      </span>png("C:/Users/SALVAT~1/AppData/Local/Temp/processinga6c0ea2d8af34a348d818540a1ed682e/bd2ac4e27919468fb6bec4ff328031bd/RPLOTS.html.png")</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                  </span>hist(Layer[[Field]],main=paste("Histogram of",Field),xlab=paste(Field))</font></div><div class="gmail_default" style=""><font face="garamond, serif" size="4"><span class="" style="white-space:pre">                  </span>dev.off()<span class="" style="white-space:pre"> </span></font></div></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">la cosa che non capisco negli script di sopra: perchè scrive in modo errato i nomi dei layer nel readOGR? nel primo caso il layer è: 'g_anagrafiche' e non 'ganagrafiche' ; nel secondo è: 'v_nro_concessioni_tomba2' e non '<u>vnroconcessionitomba2'</u>; praticamente toglie '_'.</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">concludendo:</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">se utilizzo layer postigis che non sono viste tutto procede bene anche se ottengo i log di sopra;</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">per il resto sembra funzionare tutto bene!!!</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">saluti.</div></div><div class="gmail_extra"><br><div class="gmail_quote">Il giorno 1 dicembre 2015 18:12, Totò Fiandaca <span dir="ltr"><<a href="mailto:pigrecoinfinito@gmail.com" target="_blank">pigrecoinfinito@gmail.com</a>></span> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><br><div class="gmail_quote">Il giorno 1 dicembre 2015 17:22, matteo <span dir="ltr"><<a href="mailto:matteo.ghetta@gmail.com" target="_blank">matteo.ghetta@gmail.com</a>></span> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">ti funziona con questi suggerimenti?<br>
<br>
cosi in caso si possono aggiungere al manuale di QGIS e fare un favore a<br>
tutti dopo la tua faticata.. :)</div></blockquote></div><br></span><div class="gmail_default" style="font-family:garamond,serif;font-size:large">​la risposta è articolata:</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">credo di aver capito i percorsi da mettere per configurare R in QGIS,  ma resta il dubbio: perchè per alcuni layer funziona bene e per altri no? perchè per alcuni layer dà sempre pagina bianca e nel log segnala errori su 'rgdal' e 'raster'?</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">la cosa strana è che per alcuni layer dove dà l'output corretto compare sempre, nel 'log' ,il messaggio di errore di 'rgdal' e 'raster' . </div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">ci sto lavorando ancora, spero di trovare presto la soluzione.​</div><span class=""><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="2"><font face="garamond, serif"><b>Salvatore Fiandaca</b><br><b>mobile</b>.:<a href="tel:%2B39%20327.493.8955" value="+393274938955" target="_blank">+39 327.493.8955</a> <br><b>m</b>: <b><a href="mailto:pigrecoinfinito@gmail.com" target="_blank">pig<span></span><span></span>recoinfinito@gmail.com</a></b></font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">43°51'0.54"N  10°34'27.62"E - EPSG:4326</font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2"></font></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="2"><font face="garamond, serif"><b>Salvatore Fiandaca</b><br><b>mobile</b>.:+39 327.493.8955 <br><b>m</b>: <b><a href="mailto:pigrecoinfinito@gmail.com" target="_blank">pig<span></span><span></span>recoinfinito@gmail.com</a></b></font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">43°51'0.54"N  10°34'27.62"E - EPSG:4326</font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2"></font></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>