Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-15 Per discussione Tony75
Se inserisco le stringhe di cui sopra da errore, non trova il percorso
se scrivo sudo nano ~/.bash_profile 


 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-15 Per discussione Tony75
ciao Salvatore
E se disinstallo tutto e uso  Homebrew    per
installare gdal?

O ripetere l'installazione con KyngChaos ? Seguito da:


echo 'export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH' >>
~/.bash_profile
source ~/.bash_profile

E dopo per verificare : gdalinfo --version


Mi restano anche altri due problemi sostanziali.
1)non trova Grass e mi dice che non esiste ( ma se apro il plug in mi fa
vedere le icone del programma, ossia riconosce l'interfaccia ma non lo
script. PS: Ho installato anche la versione di Grass 7 per mac esterna a
qgis e la devo testare)

2) gli errori di riconoscimento degli script Python.  Come posso verificare?

Grazie




--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-15 Per discussione Tony75

niente da fare
Se do il comando dal terminale ecco il risultato 


➜  ~ gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1
 Usage: 
 - To generate a shaded relief map from any GDAL-supported elevation raster
: 

 gdaldem hillshade input_dem output_hillshade 
 [-z ZFactor (default=1)] [-s scale* (default=1)] 
 [-az Azimuth (default=315)] [-alt Altitude (default=45)]
 [-alg ZevenbergenThorne] [-combined]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generates a slope map from any GDAL-supported elevation raster :

 gdaldem slope input_dem output_slope_map 
 [-p use percent slope (default=degrees)] [-s scale*
(default=1)]
 [-alg ZevenbergenThorne]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate an aspect map from any GDAL-supported elevation raster
   Outputs a 32-bit float tiff with pixel values from 0-360 indicating
azimuth :

 gdaldem aspect input_dem output_aspect_map 
 [-trigonometric] [-zero_for_flat]
 [-alg ZevenbergenThorne]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a color relief map from any GDAL-supported elevation raster
 gdaldem color-relief input_dem color_text_file output_color_relief_map
 [-alpha] [-exact_color_entry | -nearest_color_entry]
 [-b Band (default=1)] [-of format] [-co "NAME=VALUE"]* [-q]
 where color_text_file contains lines of the format "elevation_value red
green blue"

 - To generate a Terrain Ruggedness Index (TRI) map from any GDAL-supported
elevation raster
 gdaldem TRI input_dem output_TRI_map
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a Topographic Position Index (TPI) map from any
GDAL-supported elevation raster
 gdaldem TPI input_dem output_TPI_map
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a roughness map from any GDAL-supported elevation raster
 gdaldem roughness input_dem output_roughness_map
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 Notes : 
   Scale is the ratio of vertical units to horizontal
for Feet:Latlong use scale=370400, for Meters:LatLong use scale=20 


FAILURE: Missing destination.
zsh: no such file or directory:
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc
➜  ~ echo 'export PATH="/Library/Frameworks/GDAL.framework/Programs:$PATH"'
export PATH="/Library/Frameworks/GDAL.framework/Programs:$PATH"
➜  ~ gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1
 Usage: 
 - To generate a shaded relief map from any GDAL-supported elevation raster
: 

 gdaldem hillshade input_dem output_hillshade 
 [-z ZFactor (default=1)] [-s scale* (default=1)] 
 [-az Azimuth (default=315)] [-alt Altitude (default=45)]
 [-alg ZevenbergenThorne] [-combined]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generates a slope map from any GDAL-supported elevation raster :

 gdaldem slope input_dem output_slope_map 
 [-p use percent slope (default=degrees)] [-s scale*
(default=1)]
 [-alg ZevenbergenThorne]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate an aspect map from any GDAL-supported elevation raster
   Outputs a 32-bit float tiff with pixel values from 0-360 indicating
azimuth :

 gdaldem aspect input_dem output_aspect_map 
 [-trigonometric] [-zero_for_flat]
 [-alg ZevenbergenThorne]
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a color relief map from any GDAL-supported elevation raster
 gdaldem color-relief input_dem color_text_file output_color_relief_map
 [-alpha] [-exact_color_entry | -nearest_color_entry]
 [-b Band (default=1)] [-of format] [-co "NAME=VALUE"]* [-q]
 where color_text_file contains lines of the format "elevation_value red
green blue"

 - To generate a Terrain Ruggedness Index (TRI) map from any GDAL-supported
elevation raster
 gdaldem TRI input_dem output_TRI_map
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a Topographic Position Index (TPI) map from any
GDAL-supported elevation raster
 gdaldem TPI input_dem output_TPI_map
 [-compute_edges] [-b Band (default=1)] [-of format] [-co
"NAME=VALUE"]* [-q]

 - To generate a roughness map from any 

Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Tony75
Ho sbagliato una delle immagini scusa


 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Tony75
Salvatò niente da fare

se uso gli strumenti di processing di qgis


 
Altrimenti 



 


 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Salvatore Larosa
Ciao Antonio,

2018-03-14 18:29 GMT+01:00 Tony75 :

> Salve
> Non capisco se ho sbagliato io installando e devo disinstallare tutto , ma
> i
> problemi persistono
>
> 1) Ho caricato un raster.asc  precisamente il 5000_460.asc della sardegna
> a) ho provato a fare un profilo con il profile tools :
>
>  *Errore Python*: Si è verificato un errore durante l'esecuzione del
> codice Python:
>Vedi il log dei messaggi (Python Error) per maggiori dettagli.
>
> 2018-03-14T18:17:40 WARNING Traceback (most recent call last):
>   File "/Users/Harlock/Library/Application
> Support/QGIS/QGIS3/profiles/default/python/plugins/profileto
> ol/tools/ptmaptool.py",
> line 78, in moved
>
> self.profiletool.rubberband.addPoint(QgsPoint(self.pointstoD
> raw[i][0],self.pointstoDraw[i][1]))
> TypeError: QgsRubberBand.addPoint(): argument 1
> has unexpected type
> 'QgsPoint'
>

questo non dipende dalla tua installazione, un piccolo problema del plugin
che andrebbe segnalato
nel bugtracker del plugin ProfileTool.


>b) Ho provato a creare un raster Esposizione
> (raster/analisi/Esposizione):
>
> GDAL command:
> gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
> /Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1
> GDAL command output:
> /bin/sh: gdaldem: command not found
> Execution completed in 0.06 seconds
> Results:
> {'OUTPUT':  {'sink':/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc, 'createOptions':
> {'fileEncoding': 'System'}}>}
>
> Caricamento layer
> I seguenti layers non sono stati caricati correttamente
> /Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc
>

questo invece potrebbe dipendere da un'errata configurazioni della
variabile PATH.
Quando esegui l'algoritmo, in calce alla finestra di dialogo trovi una
console con all'interno
un comando che dovrebbe essere questo:

gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1

Hai provato a lanciarlo dal terminale? Prova e vedi se ottieni lo stesso
errore (/bin/sh: gdaldem: command not found)
Se ottieni lo stesso errore, sempre da terminale lancia:

echo 'export PATH="/Library/Frameworks/GDAL.framework/Programs:$PATH"' >>
~/.bash_profile

Vedi se cambia qualcosa rilanciando QGIS.

Saluti!


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Tony75
Ciao Gabriella. Si dovresti aprire un altra discussione, perche Win e OSX
funzionano in modo diverso :)
 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Gabriela Osaci Costache
Ciao!
Mal comune, mezzo gaudio...
Su due portatili (Windows 10-64bit, QGIS 3 installato tramite osgeo4w 32 bit) 
ho anch'io lo stesso problema con il plugin Profile Tool usando un DEM tipo 
.tif (praticamente non si può disegnare la linea del profilo). Errore 
python:2018-03-14T20:35:28 WARNING Traceback (most recent call last): File 
"C:/Users/Catalina/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\profiletool\tools\ptmaptool.py",
 line 78, in moved 
self.profiletool.rubberband.addPoint(QgsPoint(self.pointstoDraw[i][0],self.pointstoDraw[i][1]))
 TypeError: QgsRubberBand.addPoint(): argument 1 has unexpected type 'QgsPoint'

Profile Tool funziona alla grande con QGIS 2.18.16 e 2.18.17 e con lo stesso 
DEM.
Il sistema essendo differente (W10) devo aprire un'altra discussione?
Raster/analisi/esposizione funziona.
Grazie,Gabriela
  Da: Tony75 <iperstat...@gmail.com>
 A: qgis-it-user@lists.osgeo.org 
 Inviato: Mercoledì 14 Marzo 2018 19:29
 Oggetto: [QGIS-it-user] Qgis3 - Problemi persistono - OSX
   
Salve 
Non capisco se ho sbagliato io installando e devo disinstallare tutto , ma i
problemi persistono

1) Ho caricato un raster.asc  precisamente il 5000_460.asc della sardegna
    a) ho provato a fare un profilo con il profile tools :

    *Errore Python*: Si è verificato un errore durante l'esecuzione del
codice Python: 
      Vedi il log dei messaggi    (Python Error) per maggiori dettagli.

2018-03-14T18:17:40    WARNING    Traceback (most recent call last):
              File "/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/profiletool/tools/ptmaptool.py",
line 78, in moved
              
self.profiletool.rubberband.addPoint(QgsPoint(self.pointstoDraw[i][0],self.pointstoDraw[i][1]))
            TypeError: QgsRubberBand.addPoint(): argument 1 has unexpected type
'QgsPoint'

  
  b) Ho provato a creare un raster Esposizione
(raster/analisi/Esposizione):

GDAL command:
gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1
GDAL command output:
/bin/sh: gdaldem: command not found 
Execution completed in 0.06 seconds
Results:
{'OUTPUT': }

Caricamento layer
I seguenti layers non sono stati caricati correttamente
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc

insomma credo ci siano problemi sia con Python che con GDAL ma non capisco
che cosa

chi è più esperto potrebbe dare qualche suggerimento in merito? 

Grazie


  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


   ___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[QGIS-it-user] Qgis3 - Problemi persistono - OSX

2018-03-14 Per discussione Tony75
Salve 
Non capisco se ho sbagliato io installando e devo disinstallare tutto , ma i
problemi persistono

1) Ho caricato un raster.asc  precisamente il 5000_460.asc della sardegna
a) ho provato a fare un profilo con il profile tools :

 *Errore Python*: Si è verificato un errore durante l'esecuzione del
codice Python: 
   Vedi il log dei messaggi (Python Error) per maggiori dettagli.

2018-03-14T18:17:40 WARNING Traceback (most recent call last):
  File "/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/profiletool/tools/ptmaptool.py",
line 78, in moved
   
self.profiletool.rubberband.addPoint(QgsPoint(self.pointstoDraw[i][0],self.pointstoDraw[i][1]))
TypeError: QgsRubberBand.addPoint(): argument 1 has 
unexpected type
'QgsPoint'

  
   b) Ho provato a creare un raster Esposizione
(raster/analisi/Esposizione):

GDAL command:
gdaldem aspect /Users/Harlock/Downloads/DTM10M/5_460.asc
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc -of AAIGrid -b 1
GDAL command output:
/bin/sh: gdaldem: command not found 
Execution completed in 0.06 seconds
Results:
{'OUTPUT': }

Caricamento layer
I seguenti layers non sono stati caricati correttamente
/Users/Harlock/Downloads/DTM10M/Merge/Ombra.asc

insomma credo ci siano problemi sia con Python che con GDAL ma non capisco
che cosa

chi è più esperto potrebbe dare qualche suggerimento in merito? 

Grazie


  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user