Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
Yes, that looks like the source of the problem.  The os.walk() finds the color 
file named "grass" before it has a chance to find the real "grass72" file at 
the top level of the grasspath.  Though this is odd since it looks like os.walk 
by default should return a folder's info before it walks subfolders.

I don't think a file check will help, since it finds a file from the returned 
files list.  I do think the walking the whole grasspath tree is excessive.

> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
> 
> On 23 March 2018 at 08:47, William Kyngesburye  wrote:
>> Well, it seems that running any GRASS Processing coughs up this error.
>> Mystery to me, permissions are correct for the app, nothing should be
>> writing to the app, and if it is trying that's wrong.
>> 
>> The error doesn't help me try to figure out what's going on.  Help would be
>> appreciated.
> 
> 
> I believe it's this bug:
> 
> https://issues.qgis.org/issues/17555
> 
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
> 
> The bug is caused by this function:
> 
> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
> 
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
> 
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
> 
> Nyall
> 
>> 
>> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
>> wrote:
>> 
>> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>> 
>> Nothing should be trying to write to the GRASS dir.  There should not be
>> permissions problem reading from the GRASS dir.
>> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not sure
>> if this is still related.
>> 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
>> wrote:
>>> 
>>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>>> the GRASS internals still don't like spaces in the path to GRASS -- this
>>> came from my adding "3" to the QGIS app name with a space.  The app is now
>>> without a space, "QGIS3.app".
>>> 
>>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>>> why, it just happened).
>>> 
>>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>>> distributions/installations of Python are not supported (ie Homebrew,
>>> Macports, Anaconda...).
>>> 
>>> -
>>> William Kyngesburye 
>>> http://www.kyngchaos.com/
>>> 
>>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>> 
>>> [Marvin]  You think you have problems?  What are you supposed to do if you
>>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>>> times more intelligent than you and even I don't know the answer...
>>> 
>>> - HitchHiker's Guide to the Galaxy
>>> 
>>> 
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> All generalizations are dangerous, even this one.
>> 
>> 
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> "We are at war with them. Neither in hatred nor revenge and with no
>> particular pleasure I shall kill every ___ I can until the war is over. That
>> is my duty."
>> 
>> "Don't you even hate 'em?"
>> 
>> "What good would it do if I did? If all the many millions of people of the
>> allied nations devoted an entire year exclusively to hating the  it
>> wouldn't kill one ___ nor shorten the war one 

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread Nyall Dawson
On 23 March 2018 at 08:47, William Kyngesburye  wrote:
> Well, it seems that running any GRASS Processing coughs up this error.
> Mystery to me, permissions are correct for the app, nothing should be
> writing to the app, and if it is trying that's wrong.
>
> The error doesn't help me try to figure out what's going on.  Help would be
> appreciated.


I believe it's this bug:

https://issues.qgis.org/issues/17555

The permission errors is caused because it's actually trying to
execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
instead of the correct grass binary.

The bug is caused by this function:

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130

It's trying to automatically generate the grass executable path, but
it's incorrectly finding the colors/grass folder and deciding that
it's the grass executable. I think inserting a os.path.isfile check
somewhere around line 145 should fix this, but not having access to an
osx install I haven't been able to test this.

Hope that helps -- would be great to have this one sorted for 3.0.1 if
you can confirm a fix!

Nyall

>
> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
> wrote:
>
> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>
> Nothing should be trying to write to the GRASS dir.  There should not be
> permissions problem reading from the GRASS dir.
>
> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>
> Thanks William.  I'm still getting some sort of error using grass.  Not sure
> if this is still related.
>
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
>
>
>
>
> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
> wrote:
>>
>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>> the GRASS internals still don't like spaces in the path to GRASS -- this
>> came from my adding "3" to the QGIS app name with a space.  The app is now
>> without a space, "QGIS3.app".
>>
>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>> why, it just happened).
>>
>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>> distributions/installations of Python are not supported (ie Homebrew,
>> Macports, Anaconda...).
>>
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>>
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>
>> [Marvin]  You think you have problems?  What are you supposed to do if you
>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>> times more intelligent than you and even I don't know the answer...
>>
>> - HitchHiker's Guide to the Galaxy
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> All generalizations are dangerous, even this one.
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> "We are at war with them. Neither in hatred nor revenge and with no
> particular pleasure I shall kill every ___ I can until the war is over. That
> is my duty."
>
> "Don't you even hate 'em?"
>
> "What good would it do if I did? If all the many millions of people of the
> allied nations devoted an entire year exclusively to hating the  it
> wouldn't kill one ___ nor shorten the war one day."
>
>  "And it might give 'em all stomach ulcers."
>
> - Tarzan, on war
>
>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
Well, it seems that running any GRASS Processing coughs up this error.  Mystery 
to me, permissions are correct for the app, nothing should be writing to the 
app, and if it is trying that's wrong.

The error doesn't help me try to figure out what's going on.  Help would be 
appreciated.

> On Mar 22, 2018, at 1:10 PM, William Kyngesburye  
> wrote:
> 
> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
> 
> Nothing should be trying to write to the GRASS dir.  There should not be 
> permissions problem reading from the GRASS dir.
> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com 
>>  wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not sure 
>> if this is still related.
>> 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
>> denied 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
>> denied 
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye > > wrote:
>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
>> GRASS internals still don't like spaces in the path to GRASS -- this came 
>> from my adding "3" to the QGIS app name with a space.  The app is now 
>> without a space, "QGIS3.app".
>> 
>> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
>> it just happened).
>> 
>> REMINDER: My QGIS 3 package requires the python.org  
>> Python 3.  Other distributions/installations of Python are not supported (ie 
>> Homebrew, Macports, Anaconda...).
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/ 
>> 
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>> 
>> [Marvin]  You think you have problems?  What are you supposed to do if you 
>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 
>> times more intelligent than you and even I don't know the answer...
>> 
>> - HitchHiker's Guide to the Galaxy
>> 
>> 
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/ 
> 
> All generalizations are dangerous, even this one.
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-
William Kyngesburye 
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular 
pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the 
allied nations devoted an entire year exclusively to hating the  it 
wouldn't kill one ___ nor shorten the war one day."

 "And it might give 'em all stomach ulcers."

- Tarzan, on war

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[QGIS-it-user] Errore Clip Raster con poligono in file Geopack

2018-03-22 Thread Luca Bellani
Salva ho la seguente situazione:
1) raster DEM
2) poligono con forma di rettangolo in un file Geopack, nuovo, creato solo
per contenere questo poligono
3) se eseguo il Clip atraverso il progesso di saga "clip raster with
polygon" o con "il comando GDAL preso negli strumenti di processing, nessun
problema. (GDAL risulta enormenete piú veloce)

4) se eseguo il comando , come avevo sempre fatto, dal menu
raster-estrazione-clipp, da errore

sia nel punto 3 che 4 ho spuntato le stesse opzioni (creare canale alpha e
tagliare ai bordi)

Vi é mai successo?
 





--
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-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
What are you doing?  GRASS plugin tools or Processing GRASS algorithms?

Nothing should be trying to write to the GRASS dir.  There should not be 
permissions problem reading from the GRASS dir.

> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
> 
> Thanks William.  I'm still getting some sort of error using grass.  Not sure 
> if this is still related.
> 
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
> denied 
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>  /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
> denied 
> 
> 
> 
> 
> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye  > wrote:
> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
> GRASS internals still don't like spaces in the path to GRASS -- this came 
> from my adding "3" to the QGIS app name with a space.  The app is now without 
> a space, "QGIS3.app".
> 
> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
> it just happened).
> 
> REMINDER: My QGIS 3 package requires the python.org  
> Python 3.  Other distributions/installations of Python are not supported (ie 
> Homebrew, Macports, Anaconda...).
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/ 
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you 
> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times 
> more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> 
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
> 

-
William Kyngesburye 
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Modulo network analisys/routing

2018-03-22 Thread Giuliano Curti
Il gio 22 mar 2018, 15:47 Spitzbuhl Spitzbuhl  ha
scritto:

> ciao Giuliano,
> innanzitutto sono passato alla v. 2.18 ed fatto varie prove con diversi
> plug-ins.
> QNetwork ha un algoritmio denominato *calculate connectivity*: quello che
> cercavo.
> Fissato..
>

Grazie dell'info, lo guardero anch'io

Ti ringrazio per la disponibilità
>
> Saluti
>
> Giuseppe
>

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


Re: [QGIS-it-user] QGIS 3 e l'esportazione in immagine di un atlas

2018-03-22 Thread Totò
cesaregal wrote
> Ciao Salvatore,
> ho ripetuto sul mio MAC la creazione dell'atlante delle regioni così come
> da
> te proposta.
> Il risultato è questo:
> 1) sullo schermo le regioni appaiono in maniera corretta
> 2) sul pdf salvato le immagini verticali risultano tagliate e le immagini
> orizzontali risultano corrette
> 3) sul jpg salvato le immagini verticali risultano tagliate e le immagini
> orizzontali risultano corrette.
> Non c'è differenza tra pdf salvato e jpg salvato.
> Saluti
> Cesare

Ciao e grazie per la prova,
la cosa diventa ancora più interesante, su mac crea anche il pdf errato.
da me il pdf è perfetto, ma le immagini esportate come atlas no.

allego pdf:
https://mega.nz/#!oRJy3aSI!nY-JRKoRigR7CXY-HGdzdqVMH7kHBup3kPkgfG4ovzI

aspettiamo qualche prova da linux

saliti



-
https://pigrecoinfinito.wordpress.com/
--
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] QGIS 3 e l'esportazione in immagine di un atlas

2018-03-22 Thread cesaregal
Ciao Salvatore,
ho ripetuto sul mio MAC la creazione dell'atlante delle regioni così come da
te proposta.
Il risultato è questo:
1) sullo schermo le regioni appaiono in maniera corretta
2) sul pdf salvato le immagini verticali risultano tagliate e le immagini
orizzontali risultano corrette
3) sul jpg salvato le immagini verticali risultano tagliate e le immagini
orizzontali risultano corrette.
Non c'è differenza tra pdf salvato e jpg salvato.
Saluti
Cesare



--
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] QGIS 3 e l'esportazione in immagine di un atlas

2018-03-22 Thread Totò
Salve a tutti,
mentre scrivevo questo articolo [0] sul compositore di stampe di QGIS 3.0 mi
sono reso contro che esportando l'atlas in formato immagine., le immagini di
output hanno un errore strano sul formato, cosa che non accade se esportate
in PDF.

Nell'articolo spiego come realizzare un atlas e far variare il formato della
pagina (orizzontale, verticale) in funzione della geometria dell'atlas.

Esportando l'atlas come immagine le dimensioni della pagina non vengono
rispettate o meglio sono rispettate solo quelle in formato orizzontale,
quelle in verticali vengono dimezzate;
la cosa è parecchio strana perche se esporto in PDF il problema non si
verifica oppure se esporto singolarmente in immagini.

purtroppo dovete seguire il mio articolo per riprodurre il problema (oppure
scaricare i dati e progetto allegato all'articolo), 
se qualcuno ha voglia di testare e ben accetto altrimenti devo segnalare il
bug senza una prova in altri pc e configurazioni.

saluti
[0]
https://pigrecoinfinito.wordpress.com/2018/03/22/qgis-3-0-atlas-in-portrain-landscape/
[0]



-
https://pigrecoinfinito.wordpress.com/
--
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-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread Tim Sutton
Hi

Ah wow thanks so much - that fixes a big gap in the Mac user experience!

Regards

Tim

> On 22 Mar 2018, at 16:36, William Kyngesburye  wrote:
> 
> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
> GRASS internals still don't like spaces in the path to GRASS -- this came 
> from my adding "3" to the QGIS app name with a space.  The app is now without 
> a space, "QGIS3.app".
> 
> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
> it just happened).
> 
> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other 
> distributions/installations of Python are not supported (ie Homebrew, 
> Macports, Anaconda...).
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you 
> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times 
> more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Modulo network analisys/routing

2018-03-22 Thread Spitzbuhl Spitzbuhl
ciao Giuliano,
innanzitutto sono passato alla v. 2.18 ed fatto varie prove con diversi
plug-ins.
QNetwork ha un algoritmio denominato *calculate connectivity*: quello che
cercavo.
Fissato esclusivamente il punto origine, traccia il percorso verso il punto
estremo, evidenziando le varie linee che compongono il grafo.

Ti ringrazio per la disponibilità

Saluti

Giuseppe


Il giorno 17 marzo 2018 22:15, Giuliano Curti  ha
scritto:

> On 3/9/18, Spitzbuhl Spitzbuhl  wrote:
> > Ciao a tutti,
>
> ciao,
> visto che nessuno ha raccolto la "sfida", provo io (con la premessa
> che non sono un matematico e che l'argomento non lo mastico da un pò
> di tempo) :-)
>
> > in QGIS ho disegnato uno schema di collegamenti (tipo CAD) che
> rappresenta
> > circuiti elettrici.
> > Lo schema è costituito da elementi puntuali e lineari, con attributi
> > alfanumerici associati.
> > ...
> > Avendo selezionato il punto iniziale, vorrei determinare qual è l'insieme
> > delle linee che realizzano il collegamento ed eventualmente qual è il
> punto
> > finale.
> >
> > Premesso che è da poco che uso QGIS, sono disponibili funzioni "native"
> di
> > network analisys/routing?
> > Potete suggerirmi un plug-ins per network analisys?
>
> i tuoi sembrano problemi tipici di attraversamento di un grafo, tipo
> DFS o BFS; non ho capito se ti interessa anche scoprire i Shortest
> Paths o meno; credo che il plugin Network Analysis si occupi
> principalmente di questi, cmq verifica perchè ne ho una conoscenza
> abbastanza limitata;
>
> tempo fa avevo messo a punto un plugin per QGIS 2.X che implementava
> un pò di algoritmi tipici dei grafi fra cui anche quelli che cerchi;
> purtroppo è un pò che non me ne occupo e quindi non sono fresco di
> memoria; se ti interessa si può approfondire;
>
>
> > Grazie
> >
> > Saluti
> >
> > Giuseppe
>
> ciao,
> giuliano
> ___
> 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-user] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
GRASS internals still don't like spaces in the path to GRASS -- this came from 
my adding "3" to the QGIS app name with a space.  The app is now without a 
space, "QGIS3.app".

It looks like the missing SAGA is also fixed by the rebuild (don't know why, it 
just happened).

REMINDER: My QGIS 3 package requires the python.org Python 3.  Other 
distributions/installations of Python are not supported (ie Homebrew, Macports, 
Anaconda...).

-
William Kyngesburye 
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed robot?

[Marvin]  You think you have problems?  What are you supposed to do if you ARE 
a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more 
intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] Problemi interrogazione shp con relazioni 1:N

2018-03-22 Thread Martina Savarese
Ho rifatto una prova con gli shp del sample data di QGIS (airports e
regions, entrambi shp)
e poi rifatta trasformando lo shp degli areoporti in csv e impostando
la relazione con esso

con QGIS 2.18.17 nessun problema nella relazione tra due shp, mentre
persiste il problema segnalato nella relazione tra shp e csv
con QGIS3 nessun problema in entrambi i casi (forse nel csv usato
precedentemente avevo troppi record collegati a ciascun elemento del
vettore?)

Martina

Il 22 marzo 2018 12:36, Martina Savarese 
ha scritto:
> Mi correggo
>
>> L'unico modo che ho trovato per farlo funzionare,anche dopo la
>> riapertura, è inserire una scheda vuota, purché venga spostata al di
>> sopra della relazione nell'albero del "Form layout"
>
> con questo trucchetto, spostando la scheda vuota all'interno
> dell'albero, quando rivado ad interrogare lo shp mi ricompare la parte
> del csv messo nella relazione, ma una volta chiuso e riaperto il
> progetto torna ad andare in crash con l'interrogazione
>
> Martina
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Problemi interrogazione shp con relazioni 1:N

2018-03-22 Thread Martina Savarese
Mi correggo

> L'unico modo che ho trovato per farlo funzionare,anche dopo la
> riapertura, è inserire una scheda vuota, purché venga spostata al di
> sopra della relazione nell'albero del "Form layout"

con questo trucchetto, spostando la scheda vuota all'interno
dell'albero, quando rivado ad interrogare lo shp mi ricompare la parte
del csv messo nella relazione, ma una volta chiuso e riaperto il
progetto torna ad andare in crash con l'interrogazione

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


[QGIS-it-user] Problemi interrogazione shp con relazioni 1:N

2018-03-22 Thread Martina Savarese
Salve,
creando delle relazioni 1:N su degli shp (relativamente a csv con
molteplicità N) ho riscontrato problemi nell'interrogazione (finestra
"attributi elemento") degli shp una volta chiuso e riaperto il
progetto (che invece funzionava appena impostata la relazione), sia
con la 2.18.17(-3) che con la 3.0

Con la 2.18.17(-3):
funziona perfettamente con "genera maschera automaticamente", mentre
con "crea maschera d'inserimento" funziona finché non chiudo e riapro
il progetto. Una volta riaperto, nel modulo d'interrogazione la parte
della relazione (N) risulta vuota sia in modalità vista modulo che in
quella vista tabella (mentre sugli shp in cui la maschera è generata
automaticamente continuo a vederla)

Con la 3.0 (dal nuovo pannello "Attribute form") :
- con "genera automaticamente" la relazione non si vede
-con "crea maschera d'inserimento" ho due casi:
1) funziona sempre se creo una scheda e la lascio vuota; se invece
inserisco i campi dello shp nella scheda creata la parte della
relazione risulta vuota una volta chiuso e riaperto il progetto
2) se non inserisco alcuna scheda, l'interrogazione funziona funziona
finché non chiudo e riapro il progetto. Quando lo riapro interrogando
lo shp QGIS va in crash
L'unico modo che ho trovato per farlo funzionare,anche dopo la
riapertura, è inserire una scheda vuota, purché venga spostata al di
sopra della relazione nell'albero del "Form layout"

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


Re: [QGIS-it-user] Scala mappa in Atlas

2018-03-22 Thread skampus
Totò wrote
> l'errore è stato appena corretta da matteo Ghetta.

appena revisionato e bloccato
grazie per la segnalazione

s.



--
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] R: stampa Atlas

2018-03-22 Thread Totò
Rancati Erica wrote
> Buongiorno,
> non ho mai scritto e non so se questa sia la modalità corretta per
> chiedere un aiuto, mi scuso anticipatamente se dovesse essere sbagliata.
> Non riesco in alcuna maniera a stampare le schede relative ad un atlante.
> L'atlante è costruito su corpi idrici superficiali ed il layout prevede,
> oltre alla mappa, delle tabelle con informazioni (nome e codice del corpo
> idrico...) e dei campi in cui registrare a posteriori dei dati. In tutto
> sono 54 schede ma al momento di mandarle in stampa compare una finestra
> "sto disegnando le mappe" con l'indicazione della percentuale di
> avanzamento del lavoro ma al termine o stampa un'unica pagina bianca o
> stampa le prime 3 o 4 schede correttamente e le successive senza mappa. Ho
> provato anche a stamparle singolarmente ma il problema si ripropone.
> Cosa sbaglio? Ho salvato ognuno dei singoli layer su pc (quindi non li
> deve "pescare" esternamente).
> Grazie a chi mi illuminerà,
> 
> Erica

Ciao ,
per favore crea un nuovo topic altrimenti non ci si capisce nulla.

grazie



-
https://pigrecoinfinito.wordpress.com/
--
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] Scala mappa in Atlas

2018-03-22 Thread Totò
Giulio Fattori wrote
> Buongiorno, in Qgis 3  ho realizzato un Atlas e inserito la scala in 
> modalità numerica, come scorro l'Atlas la scala viene resettata a 1:1, 
> capita anche a voi?
> 
> Inoltre in fase di stampa esce come scritta "Esportanto" invece di 
> "Esportando".
> 
> Fatemi sapere.
> 
> Saluti

Ciao,
ho appena fatto un atlas e messo la scala grafica, tutto regolare.

l'errore è stato appena corretta da matteo Ghetta.

saluti



-
https://pigrecoinfinito.wordpress.com/
--
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] R: stampa Atlas

2018-03-22 Thread Rancati Erica
Buongiorno,
non ho mai scritto e non so se questa sia la modalità corretta per chiedere un 
aiuto, mi scuso anticipatamente se dovesse essere sbagliata.
Non riesco in alcuna maniera a stampare le schede relative ad un atlante. 
L'atlante è costruito su corpi idrici superficiali ed il layout prevede, oltre 
alla mappa, delle tabelle con informazioni (nome e codice del corpo idrico...) 
e dei campi in cui registrare a posteriori dei dati. In tutto sono 54 schede ma 
al momento di mandarle in stampa compare una finestra "sto disegnando le mappe" 
con l'indicazione della percentuale di avanzamento del lavoro ma al termine o 
stampa un'unica pagina bianca o stampa le prime 3 o 4 schede correttamente e le 
successive senza mappa. Ho provato anche a stamparle singolarmente ma il 
problema si ripropone.
Cosa sbaglio? Ho salvato ognuno dei singoli layer su pc (quindi non li deve 
"pescare" esternamente).
Grazie a chi mi illuminerà,

Erica


Da: QGIS-it-user [mailto:qgis-it-user-boun...@lists.osgeo.org] Per conto di 
Giulio Fattori
Inviato: giovedì 22 marzo 2018 09:55
A: qgis-it-user@lists.osgeo.org
Oggetto: [QGIS-it-user] Scala mappa in Atlas


Aggiungo che dopo Esportanto compare anche il numero di pagina seguito da un % 
e che selezionando nelle opzioni dell'atlas vettore di copertura nascosto,

ancorchè nascosto nell'anteprima in raltà compare sempre nelle stampe.

Saluti

AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel 
messaggio o nei suoi allegati. Se non siete i destinatari indicati nel 
messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto 
il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo 
ad alcuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi 
allegati. Grazie.
CONFIDENTIALITY NOTICE Confidential information may be contained in this 
message or in its attachments. If you are not the addressee indicated in this 
message, or responsible for message delivering to that person, or if you have 
received this message in error, you may not transcribe, copy or deliver this 
message to anyone. In that case, you should delete this message and its 
attachments. Thank you.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Geocoding

2018-03-22 Thread Martina Savarese
Io ho provato solo con Google maps e mi funzionava

Martina

Il 22 marzo 2018 09:54, Dyd666  ha scritto:
> Grazie Martina, effettivamente nella 2.18 ha funzionato, anche se solo
> utilizzando OSM e non Google Maps. Pazienza, per adesso mi accontento.
> Buon lavoro.
> Mauro
>
>
>
> --
> 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] Scala mappa in Atlas

2018-03-22 Thread Giulio Fattori
Aggiungo che dopo Esportanto compare anche il numero di pagina seguito 
da un % e che selezionando nelle opzioni dell'atlas vettore di copertura 
nascosto,


ancorchè nascosto nell'anteprima in raltà compare sempre nelle stampe.

Saluti

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


Re: [QGIS-it-user] Geocoding

2018-03-22 Thread Dyd666
Grazie Martina, effettivamente nella 2.18 ha funzionato, anche se solo
utilizzando OSM e non Google Maps. Pazienza, per adesso mi accontento.
Buon lavoro.
Mauro



--
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] Scala mappa in Atlas

2018-03-22 Thread Giulio Fattori
Buongiorno, in Qgis 3  ho realizzato un Atlas e inserito la scala in 
modalità numerica, come scorro l'Atlas la scala viene resettata a 1:1, 
capita anche a voi?


Inoltre in fase di stampa esce come scritta "Esportanto" invece di 
"Esportando".


Fatemi sapere.

Saluti

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


Re: [Qgis-user] Using processing algorithms from the console in QGIS 3.0

2018-03-22 Thread matteo
Hi Håvard,

after you have run the algorithm

> processing.algorithmHelp("qgis:union") describes the
> parameters of the algorithm.
> Parameter names are case sensitive (at least on Ubuntu).

you can also display the results in the TOC as memory layer with:

param = {'INPUT': 'my_points', 'BUFFER': '0.0' ,'OUTPUT':'memory:'}
processing.runAndLoadResults('qgis:voronoipolygons', param)

Cheers

Matteo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Using processing algorithms from the console in QGIS 3.0

2018-03-22 Thread Havard Tveite

QgsApplication.processingRegistry().algorithms() does not
list grass7:v.to.rast.value (but grass7:v.to.rast is
there).

In QGIS 3, the following seems to work:

myres = processing.run("qgis:union", {'INPUT': "my_input", 'OVERLAY': 
"my_overlay", 'OUTPUT': "my_result"}, feedback=None)['OUTPUT']


processing.algorithmHelp("qgis:union") describes the
parameters of the algorithm.
Parameter names are case sensitive (at least on Ubuntu).

Håvard

On 21. mars 2018 17:46, Stephen Bosch wrote:

Hello,

I am running QGIS 3.0.0 in Linux.

I'm trying to migrate some pyqgis code from 2.14 to 3.0 and discovering 
the hard way that just about everything has changed :)


(Unfortunately, the docs haven't been updated yet and the API docs are 
pretty sparse.)


Say I have this command, which worked in 2.x:

file_grid_r = processing.runalg("grass7:v.to.rast.value", grid_v, 0, 1, 
extent, 0.008333, -1, 0.000100, None)['output']


processing.runalg() doesn't exist anymore, apparently it was replaced 
with processing.run(). However, this:


file_grid_r = processing.run("grass7:v.to.rast.value", grid_v, 0, 1, 
extent, 0.008333, -1, 0.000100, None)['output']


does not work as expected. In the PyCharm debugger, I receive this error 
message:


sys:1: ResourceWarning: unclosed family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
laddr=('127.0.0.1', 50386), raddr=('127.0.0.1', 40183)>


(If the command syntax is in fact correct, then perhaps the algorithm is 
not accessible?)


My questions:

  * Is there up-to-date console documentation for the Processing toolbox
somewhere?
  * How can I get a listing of the available algorithms in the same
format as in 2.x?
  * How do I convert the algorithm calls (processing.runalg) from 2.x to
3.x?


Thanks

Stephen


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



--
Håvard Tveite
Faculty of Science and Technology, NMBU
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 67231548   Web: http://www.nmbu.no
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Using processing algorithms from the console in QGIS 3.0

2018-03-22 Thread Stefan Giese (WhereGroup)

Hi Stephen,
I asked a similar question at gis.stackexchange.com 
(https://gis.stackexchange.com/questions/274144/passing-input-output-parameters-to-processing-scripts-using-qgis-3) 
and I think we have to be patient. The documentation is work in 
progress. I am sure processing tools will work like a charm, when we 
will know how to use it;-)


Best
stefan

---
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
***
Treffen Sie uns auf der
FOSSGIS Konferenz 2018
21.-24. März 2018 in Bonn
https://fossgis-konferenz.de/2018/
***
WhereGroup GmbH & Co. KG
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

stefan.gi...@wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---

Am 2018-03-21 17:46, schrieb Stephen Bosch:

Hello,

I am running QGIS 3.0.0 in Linux.

I'm trying to migrate some pyqgis code from 2.14 to 3.0 and
discovering the hard way that just about everything has changed :)

(Unfortunately, the docs haven't been updated yet and the API docs are
pretty sparse.)

Say I have this command, which worked in 2.x:

file_grid_r = processing.runalg("grass7:v.to.rast.value", grid_v, 0,
1, extent, 0.008333, -1, 0.000100, None)['output']

processing.runalg() doesn't exist anymore, apparently it was replaced
with processing.run(). However, this:

file_grid_r = processing.run("grass7:v.to.rast.value", grid_v, 0, 1,
extent, 0.008333, -1, 0.000100, None)['output']

does not work as expected. In the PyCharm debugger, I receive this
error message:

sys:1: ResourceWarning: unclosed 

(If the command syntax is in fact correct, then perhaps the algorithm
is not accessible?)

My questions:

* Is there up-to-date console documentation for the Processing
toolbox somewhere?
* How can I get a listing of the available algorithms in the same
format as in 2.x?
* How do I convert the algorithm calls (processing.runalg) from 2.x
to 3.x?

Thanks

Stephen
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user