Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Per discussione Nyall Dawson
On Wed, 27 Nov 2019 at 15:26, Denis Rouzaud  wrote:
>
> Thanks Nyall for the precisions.
> I wasn't aware of QgsBlockingNetworkRequest.
>
> So basically, if I don't require authcf, then starting from 3.6 there is no 
> reason to use my python nam, I should use both QgsNetworkContentFetcher and 
> QgsBlockingNetworkRequest. And from 3.10 if require authcfg in 
> QgsNetworkContentFetcher.
> Is this correct?

QgsBlockingNetworkRequest has always supported auth, so you should use
that in 3.6 and above in all situations WHEN you need a blocking
request.

QgsNetworkContentFetcher is async, so definitely prefer to use that
whenever you don't need a blocking request.

I'd say the matrix is something like

QGIS 3.4:

 Blocking:
   With auth: python nam (but be aware that it CAN and DOES crash
crashes if used on the main thread)
   Without auth: python nam (but be aware that it CAN and DOES crash
crashes if used on the main thread)

 Non-blocking:
   With auth:  nothing available off-the-shelf -- roll your own
using raw the qt and QGIS auth api?
   Without auth: QgsNetworkContentFetcher

QGIS 3.6 - 3.8:

 Blocking:
   With auth: QgsBlockingNetworkRequest
   Without auth: QgsBlockingNetworkRequest

 Non-blocking:
   With auth:  nothing available off-the-shelf -- roll your own
using raw the qt and QGIS auth api?
   Without auth: QgsNetworkContentFetcher

QGIS 3.10:

 Blocking:
   With auth: QgsBlockingNetworkRequest
   Without auth: QgsBlockingNetworkRequest

 Non-blocking:
   With auth:  QgsNetworkContentFetcher
   Without auth: QgsNetworkContentFetcher


Nyall



>
> Cheers,
> Denis
>
> Le mer. 27 nov. 2019 à 00:27, Nyall Dawson  a écrit :
>>
>> On Wed, 27 Nov 2019 at 00:44, Denis Rouzaud  wrote:
>> >
>> > Hi,
>> >
>> > Jumping late but we use the work from NAM Alessandro did in a couple of 
>> > locator filters.
>> > https://github.com/opengisch/qgis-swiss-locator/blob/master/swiss_locator/core/network_access_manager.py
>> >
>> > I believe I have done very very few adaptations/fixes to the original work 
>> > and it works like a charm.
>>
>> Not quite. It works in some circumstances, but it uses an event loop.
>> So if you run it on the main thread, you're potentially doing an
>> effective call to QApplication.processEvents, which can lead to all
>> sorts of crashes. That said, it's generally a safe approach to use for
>> QGIS <= 3.4... just don't use it in any code which relates to
>> rendering!
>>
>> >
>> > I had in mind to bring this as is within QGIS core for some time. The main 
>> > point being for us the blocking request rather than authcfg.
>>
>> That's EXACTLY what QgsBlockingNetworkRequest is -- please don't
>> re-re-implement this!
>>
>> Nyall
>>
>>
>> >
>> > Denis
>> >
>> > Le mar. 26 nov. 2019 à 15:36, C Hamilton  a écrit :
>> >>
>> >> Thanks everyone. This gives me some good ideas. These are the possible 
>> >> solutions:
>> >>
>> >> 1. Write a python implementation of QgsNetworkContentFetcher or 
>> >> QgsBlockingNetworkRequest. With this I could look at the QGIS version and 
>> >> if it is 3.10 or greater import the core method; otherwise, import the 
>> >> python implementation.
>> >> 2. Use the old Boundless implementation if it still works in QGIS 3.
>> >> 3. Use QgsFileDownloader and save it as a temporary file before 
>> >> processing.
>> >>
>> >> Calvin
>> >>
>> >> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  
>> >> wrote:
>> >>>
>> >>>
>> >>>
>> >>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde 
>> >>>  wrote:
>> 
>>  On 26/11/2019 00.06, Nyall Dawson wrote:
>> 
>>  > There's not. But there's the ex-boundless "networkaccessmanager"
>>  > implementation that supports authcfg, which you can find at
>>  > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>>  > (and other projects -- as far as I'm aware there's no real upstream
>>  > for this... Alessandro?).
>> 
>>  I used this Boundless thingie for several plugins now (original source
>>  is now pointing/redirecting to planetlabs [0]).
>> >>>
>> >>>
>> >>> Yes, that's the "upstream" but I don't know if that one is maintained 
>> >>> anymore.
>> >>>
>> >>> Btw, there is also a specialized class for sync/async downloads that 
>> >>> supports authcfg: 
>> >>> https://qgis.org/api/classQgsFileDownloader.html#details
>> >>>
>> >>>
>> 
>> 
>>  I think we already discussed several times that it would be good to
>>  incorporate this into a commons lib for QGIS. But if I'm correct the
>>  actual interface was not exactly what some wanted, and if I recall
>>  correct Nyall tried to pull this into c++ but hit some multithreading
>>  issues.
>> 
>>  But as Nyall says: I think this is a great lib to use in a plugin (also
>>  because it used the QgisNetwork-stuff, so you can receive the signals
>>  from it or log the precise urls, like we do in the QGISnetworklogger
>>  plugin [1]
>> 

Re: [QGIS-it-user] funzione Aggregate del Field Calculator

2019-11-26 Per discussione Luca Bellani
Semplice per te... ahaha! potresti darmi dei dettagli in piú sui componenti
del codice?

la variabile @curret_geometry si attiva con un form aperto del value
relation...quindi se ho un semplice layer di punti, senza widget, non
funzionerebbe... facio delle prove..

nel codice: come si fa a differenziare la geometria del punto, e dei
poligoni? chi é tra @current y $geometry?

Ciao e grazie mille



--
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 3.10 with gdal 2.4

2019-11-26 Per discussione Nyall Dawson
On Wed, 27 Nov 2019 at 04:40,  wrote:
>
> Hi everyone, I installed qgis 3.10 just because I wanted to try the Geopdf 
> export thing but I am stuck with a qgis 3.10 and gdal 2.34 and since I am new 
> in town I dont seem to find an easy way to update it to 3.X. I tried Osgeo4w 
> and downloaded the 3.0X version but I dont know what to do next. Can you help 
> guys? THx in advance.

Just wait till 3.10.1 is released next week -- this will fix your problem.

Nyall

> Amaury
> Institute of Soil of Cuba
>
> 
>
> Hola
>
> ___
> 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

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Per discussione Nyall Dawson
On Wed, 27 Nov 2019 at 00:44, Denis Rouzaud  wrote:
>
> Hi,
>
> Jumping late but we use the work from NAM Alessandro did in a couple of 
> locator filters.
> https://github.com/opengisch/qgis-swiss-locator/blob/master/swiss_locator/core/network_access_manager.py
>
> I believe I have done very very few adaptations/fixes to the original work 
> and it works like a charm.

Not quite. It works in some circumstances, but it uses an event loop.
So if you run it on the main thread, you're potentially doing an
effective call to QApplication.processEvents, which can lead to all
sorts of crashes. That said, it's generally a safe approach to use for
QGIS <= 3.4... just don't use it in any code which relates to
rendering!

>
> I had in mind to bring this as is within QGIS core for some time. The main 
> point being for us the blocking request rather than authcfg.

That's EXACTLY what QgsBlockingNetworkRequest is -- please don't
re-re-implement this!

Nyall


>
> Denis
>
> Le mar. 26 nov. 2019 à 15:36, C Hamilton  a écrit :
>>
>> Thanks everyone. This gives me some good ideas. These are the possible 
>> solutions:
>>
>> 1. Write a python implementation of QgsNetworkContentFetcher or 
>> QgsBlockingNetworkRequest. With this I could look at the QGIS version and if 
>> it is 3.10 or greater import the core method; otherwise, import the python 
>> implementation.
>> 2. Use the old Boundless implementation if it still works in QGIS 3.
>> 3. Use QgsFileDownloader and save it as a temporary file before processing.
>>
>> Calvin
>>
>> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  
>> wrote:
>>>
>>>
>>>
>>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde  
>>> wrote:

 On 26/11/2019 00.06, Nyall Dawson wrote:

 > There's not. But there's the ex-boundless "networkaccessmanager"
 > implementation that supports authcfg, which you can find at
 > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
 > (and other projects -- as far as I'm aware there's no real upstream
 > for this... Alessandro?).

 I used this Boundless thingie for several plugins now (original source
 is now pointing/redirecting to planetlabs [0]).
>>>
>>>
>>> Yes, that's the "upstream" but I don't know if that one is maintained 
>>> anymore.
>>>
>>> Btw, there is also a specialized class for sync/async downloads that 
>>> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>>>
>>>


 I think we already discussed several times that it would be good to
 incorporate this into a commons lib for QGIS. But if I'm correct the
 actual interface was not exactly what some wanted, and if I recall
 correct Nyall tried to pull this into c++ but hit some multithreading
 issues.

 But as Nyall says: I think this is a great lib to use in a plugin (also
 because it used the QgisNetwork-stuff, so you can receive the signals
 from it or log the precise urls, like we do in the QGISnetworklogger
 plugin [1]

 Regards,

 Richard Duivenvoorde

 [0]
 https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
 [1] https://github.com/rduivenvoorde/qgisnetworklogger
 ___
 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
>>>
>>>
>>>
>>> --
>>> Alessandro Pasotti
>>> w3:   www.itopen.it
>>
>> ___
>> 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-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] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Per discussione Nyall Dawson
On Wed, 27 Nov 2019 at 00:35, C Hamilton  wrote:
>
> Thanks everyone. This gives me some good ideas. These are the possible 
> solutions:
>
> 1. Write a python implementation of QgsNetworkContentFetcher or 
> QgsBlockingNetworkRequest. With this I could look at the QGIS version and if 
> it is 3.10 or greater import the core method; otherwise, import the python 
> implementation.

Trust me -- don't do this. When I wrote the c++ version it nearly
killed me, it's insanely complex with many many components at play.

> 2. Use the old Boundless implementation if it still works in QGIS 3.

I'd do this, but only for QGIS < 3.6. For 3.6 and above use
QgsBlockingNetworkRequest, and when 3.4 is EOLed in a couple of months
you can rely on QgsBlockingNetworkRequest everywhere.

> 3. Use QgsFileDownloader and save it as a temporary file before processing.

Also a good idea, but be aware that it's not blocking, which can mean
it can't be used in certain places. Warning: DO NOT USE
QApplication.processEvents() or a QEventLoop to try to emulate
blocking behavior with this class!

Nyall

>
> Calvin
>
> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  wrote:
>>
>>
>>
>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde  
>> wrote:
>>>
>>> On 26/11/2019 00.06, Nyall Dawson wrote:
>>>
>>> > There's not. But there's the ex-boundless "networkaccessmanager"
>>> > implementation that supports authcfg, which you can find at
>>> > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>>> > (and other projects -- as far as I'm aware there's no real upstream
>>> > for this... Alessandro?).
>>>
>>> I used this Boundless thingie for several plugins now (original source
>>> is now pointing/redirecting to planetlabs [0]).
>>
>>
>> Yes, that's the "upstream" but I don't know if that one is maintained 
>> anymore.
>>
>> Btw, there is also a specialized class for sync/async downloads that 
>> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>>
>>
>>>
>>>
>>> I think we already discussed several times that it would be good to
>>> incorporate this into a commons lib for QGIS. But if I'm correct the
>>> actual interface was not exactly what some wanted, and if I recall
>>> correct Nyall tried to pull this into c++ but hit some multithreading
>>> issues.
>>>
>>> But as Nyall says: I think this is a great lib to use in a plugin (also
>>> because it used the QgisNetwork-stuff, so you can receive the signals
>>> from it or log the precise urls, like we do in the QGISnetworklogger
>>> plugin [1]
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>>
>>> [0]
>>> https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
>>> [1] https://github.com/rduivenvoorde/qgisnetworklogger
>>> ___
>>> 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
>>
>>
>>
>> --
>> Alessandro Pasotti
>> w3:   www.itopen.it
___
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] funzione Aggregate del Field Calculator

2019-11-26 Per discussione Totò
Luca Bellani wrote
> Salve un quesito sul field calc.
> Il nostro mentore Salvatore Fiandaca, ci ha presentato vari esempi di
> utilizzo della funzione Aggregate, per recuperare dati in un secondo
> layer,
> che abbia delle relazioni geometriche con il primo.
> Per esempio, punto contenuto in poligono, per esempio.
> Ora peró vorrei fare un passo in piú: la relazione spaziale da usare come
> filtro nella funzione, dovrebbe essere la vicinaza, ossia, lavoro sul
> layer
> di punti, e vorrei che a inserire il nuovo punto, prendesse in automatico
> il
> valore di un campo di un layer di poligoni (localitá), scegliendo il
> poligono piú vicino.
> 
> ho fatto alcune prove, ma la mia capacitá del calc field é molto limitata!
> 
> avevo provato con:
> 
> aggregate( 
>   layer:='INEGI_pg_loc_VER', 
>   aggregate:='concatenate', 
>   expression:= "NOMLOC", 
>   filter:= shortest_line(centroid($geometry),geometry(@parent))
> )
> 
> La formula non da errori, ma non esegue nulla. ho capito che Shortest_line
> ritorna una geometria, mentre il filtro si aspetta un 1 o 0 (true o
> false).
> 
> Lascio questo caso d'uso, potrebbe aprire a piú idee!
> Ciao


Ciao Luca,
la risposta è molto semplice e la trovi nel mio #HfcQGIS
in particolare nell'esercizio nro 33
ecco il link diretto:
http://hfcqgis.opendatasicilia.it/it/latest/esempi/drilldown_form_multiple.html#form-avanzato-con-spatial-join-1-m

--
minimum(distance(@current_geometry ,$geometry))= distance(@current_geometry
,$geometry)




-
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-user] Qgis 3.10 with gdal 2.4

2019-11-26 Per discussione amaury . beltran
Hi everyone, I installed qgis 3.10 just because I wanted to try the Geopdf 
export thing but I am stuck with a qgis 3.10 and gdal 2.34 and since I am new 
in town I dont seem to find an easy way to update it to 3.X. I tried Osgeo4w 
and downloaded the 3.0X version but I dont know what to do next. Can you help 
guys? THx in advance.
Amaury
Institute of Soil of Cuba

___
Instituo de Suelos


Instituto de Suelos


___
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] QGIS 3.10 (v. GDAL 3) e pannello "Select Transformation"

2019-11-26 Per discussione Luca Bellani
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] funzione Aggregate del Field Calculator

2019-11-26 Per discussione Luca Bellani
Salve un quesito sul field calc.
Il nostro mentore Salvatore Fiandaca, ci ha presentato vari esempi di
utilizzo della funzione Aggregate, per recuperare dati in un secondo layer,
che abbia delle relazioni geometriche con il primo.
Per esempio, punto contenuto in poligono, per esempio.
Ora peró vorrei fare un passo in piú: la relazione spaziale da usare come
filtro nella funzione, dovrebbe essere la vicinaza, ossia, lavoro sul layer
di punti, e vorrei che a inserire il nuovo punto, prendesse in automatico il
valore di un campo di un layer di poligoni (localitá), scegliendo il
poligono piú vicino.

ho fatto alcune prove, ma la mia capacitá del calc field é molto limitata!

avevo provato con:

aggregate( 
layer:='INEGI_pg_loc_VER', 
aggregate:='concatenate', 
expression:= "NOMLOC", 
filter:= shortest_line(centroid($geometry),geometry(@parent))
)

La formula non da errori, ma non esegue nulla. ho capito che Shortest_line
ritorna una geometria, mentre il filtro si aspetta un 1 o 0 (true o false).

Lascio questo caso d'uso, potrebbe aprire a piú idee!
Ciao





--
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] Problema trasformazioni

2019-11-26 Per discussione francesco marucci
ciao,
un consiglio veloce e un po al buio: prova a vedere se per caso nella
definizione del 3003 ci siano i 7 parametri towgs84 (o sono diversi) e nel
caso prendili dalla definizione di PROJ precedente.

un saluto,
francesco


Il mar 26 nov 2019 18:31 Luca Bellani 
ha scritto:

> Ciao, ci sono vari poblemi giusto con PROJ 6 (le ultimissime versioni di
> QGIs
> 3.10 e 3.4.13)
> Io ti consiglio di tornare alla versione immediatamente precedente, e tutto
> torna sotto controllo!
>
>
>
> --
> 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


Re: [QGIS-it-user] Problema trasformazioni

2019-11-26 Per discussione Luca Bellani
Ciao, ci sono vari poblemi giusto con PROJ 6 (le ultimissime versioni di QGIs
3.10 e 3.4.13)
Io ti consiglio di tornare alla versione immediatamente precedente, e tutto
torna sotto controllo!



--
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] Request help 'Aggregate polygons' QGIS 3

2019-11-26 Per discussione FT
Dear Andy,Thank you very much for your help, I will try the procedure immediately.You definitely gave me a hand.All the best,FlavioIl 25 nov 2019 17:32, "Harfoot A.J."  ha scritto:
Hi Flavio,
I'm not aware of a single tool that is the exact equivalent of the ArcGIS one.
The Concave hull (k-nearest neighbor) tool (part of the QGIS Processing toolbox, not a plugin) will generate the the bounding polygon, but does not allow input data to be grouped by a separation distance, but will accept a 'group' field which creates a polygon
 for each set of features having the same value for the field. This allows the separation distance to be incorporated:
Buffer the polygons by the maximum separation distance required, dissolving the resultsSpatially join the original polygons to the buffer output so that each original polygon receives the unique id of the buffer polygon that it falls withinCreate concave hulls using the buffer id field as the group field.
This sequence could be easily added to a model, simplifying and reducing the chances of errors when executing.

Andy


On 21/11/2019 17:46, 
flavio.taccaliti@libero.it wrote:


Hi everyone, 


This is my first message in a users' group, I hope not to break any "netiquette" rule.



I have come across this little problem, and I would like to ask you if there is a simple solution to it:

I am looking for a QGIS 3 tool similar to ArcGIS "Aggregate polygons", 
http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/aggregate-polygons.htm ( (it takes a multipolygon layer and aggregate the polygons that are closer than a given distance).



I have come across some results on the web, like using PostGIS (https://gis.stackexchange.com/questions/113084/qgis-equivalent-to-arcgis-aggregate-polygons)
 or 
Unfortunately, I have no experience with Postgres or SQL yet, and given the limited amount of time I have for this task it would be unfeasible for me to learn them now.



"Concave hull" tool (https://plugins.qgis.org/plugins/concavehull/) does not what I am looking for, as I would like to set the maximum distance between polygons in
 the clusters, not the maximum number of polygons. 
Also "aggregate" function seems to me not to aggregate polygons by their proximity (https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#aggregate).



For the moment I have used the ArcGIS tool on another computer, but the idea is to write down some simple instructions for other users who will have even less expertise than me. Maybe the "button" already exists in QGIS 3, in that case excuse me for the
 repetition. 


Thank you in advance for any suggestion or indication. 


Best regards, 


FT 


___
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

-- 
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719

www.geodata.soton.ac.uk

___
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] Problema trasformazioni

2019-11-26 Per discussione Mauro D'Ambroso
Ho una configurazione Qgis OSGeo4W64 che uso da tempo (sistema Win10 x64)

Il 1 ottobre chiudo un progetto (*EPSG 3003*) con Qgis 3.4.12 e questi
layer sovrapposti:

   1. WMS Particelle catastali (EPSG 25832 fornito da AdT)
   2. Bing satellite (EPSG 3857)
   3. Google satellite (EPSG 3857)
   4. Ortofoto 2015 (EPSG 3003 fornita da Regione Veneto)

La riproiezione al volo lavora egregiamente e tutto si sovrappone
correttamente (con le inevitabili tolleranze ovviamente...)

Ieri 25.11.2019 dopo avere aggiornato a Qgis 3.4.13.2 (con aggiornamento
anche delle PROJ 6 e di Gdal) lo stesso progetto (mai modificato dal 1
ottobre) da i seguenti problemi:

   1. WMS Particelle catastali spostate circa 62 metri verso Nord e qualche
   metro verso Ovest
   2. Bing satellite spostato 74 metri verso Nord e 16 metri verso Ovest
   3. Google satellite spostato 74 metri verso Nord e 16 metri verso Ovest
   4. Ortofoto 2015 ancora perfetta (essendo in proiezione nativa non
   necessita di alcuna modifica al volo).

Il problema risiede in Qgis o nelle librerie PROJ 6 ?

Resta il problema che adesso non posso più lavorarci sopra a meno di non
tornare ad una configurazione antecedente...
Ho provato a reinstallare le librerie "vecchie" ma il sistema ti permette
solo la scelta della penultima e non cambia nulla, stesso comportamento.

Qualcuno ha avuto esperienze simili ?

Grazie.

Mauro
___
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] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Per discussione C Hamilton
Thanks everyone. This gives me some good ideas. These are the possible
solutions:

1. Write a python implementation of QgsNetworkContentFetcher or
QgsBlockingNetworkRequest. With this I could look at the QGIS version and
if it is 3.10 or greater import the core method; otherwise, import the
python implementation.
2. Use the old Boundless implementation if it still works in QGIS 3.
3. Use QgsFileDownloader and save it as a temporary file before processing.

Calvin

On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti 
wrote:

>
>
> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde 
> wrote:
>
>> On 26/11/2019 00.06, Nyall Dawson wrote:
>>
>> > There's not. But there's the ex-boundless "networkaccessmanager"
>> > implementation that supports authcfg, which you can find at
>> >
>> https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>> > (and other projects -- as far as I'm aware there's no real upstream
>> > for this... Alessandro?).
>>
>> I used this Boundless thingie for several plugins now (original source
>> is now pointing/redirecting to planetlabs [0]).
>>
>
> Yes, that's the "upstream" but I don't know if that one is maintained
> anymore.
>
> Btw, there is also a specialized class for sync/async downloads that
> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>
>
>
>>
>> I think we already discussed several times that it would be good to
>> incorporate this into a commons lib for QGIS. But if I'm correct the
>> actual interface was not exactly what some wanted, and if I recall
>> correct Nyall tried to pull this into c++ but hit some multithreading
>> issues.
>>
>> But as Nyall says: I think this is a great lib to use in a plugin (also
>> because it used the QgisNetwork-stuff, so you can receive the signals
>> from it or log the precise urls, like we do in the QGISnetworklogger
>> plugin [1]
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>> [0]
>>
>> https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
>> [1] https://github.com/rduivenvoorde/qgisnetworklogger
>> ___
>> 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
>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
___
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] stampa e note di testo

2019-11-26 Per discussione dome_qgis
ho questo problema: quando inserisco delle note di testo per indicare alcune
informazioni, al momento della stampa con la funzione atlante, le note di
testo vengono visualizzate anche all’esterno del riquadro di mappa. Ho
grossolanamente risolto creando dei rettangoli bianchi in primo piano per
nascondere le note esterne alla mappa, ma questo metodo primitivo non mi
piace. So che posso attivare le note di testo esterne alla mappa, ma questo
dovrei farlo per ogni mappa dell’atlante, rendendo poco agevole
l’esportazione dei PDF. Voi avete un metodo più interessante del mio?
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-user] Building Qgis Server only

2019-11-26 Per discussione Jessica Hutchinson
Anyone know how to unsubscribe ?


-Original Message-
From: Qgis-user  On Behalf Of Henrik Uggla
Sent: 26 November 2019 10:29
To: Andreas Neumann 
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Building Qgis Server only

Hi!

I managed to create a Docker container with Qgis Server on Alpine:
https://hub.docker.com/repository/docker/huggla/qgisserver-alpine

Feedback is welcome.

Regards
HU


Från: Qgis-user  för Henrik Uggla 

Skickat: den 7 januari 2019 12:47:21
Till: Andreas Neumann
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
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
___
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

Re: [QGIS-it-user] Stat & mean coordinate(s)

2019-11-26 Per discussione Totò
ffierm wrote
> Ciao a Tutti,
> 
> su input di un Collega, sto cercando di "verificare" se e come QGIS possa
> essere utile per effettuare "analisi" come, ad esempio:
> 
> 
> areal data
> 
> location quotient
> coefficient of localisation
> lorenz curve
> gini coefficient
> 
> point data
> 
> mean center
> weighted mean center
> manhattan media
> eucledian media
> 
> directions
> 
> circular statistics
> direction mean
> 
> 
> (qualsiasi suggerimento e/o aiuto e' ovviamente il benvenuto)
> 
> Mi sono piantato quasi subito sulla "mean center" (che mi pareva la piu'
> semplice da approfondire).
> 
> In sostanza, ho disegnato i vertici di un quadrato (4 points layer)[0]
> edho calcolato la "mean coordinate(s)"[*] che 
> 
>  essere equivalente alla "mean center".
> QGIS mi ha creato un nuovo layer contenente un punto "baricentrico"[1] ai4
> vertici. Il risultato ha senso.
> 
> Se pero', nello stesso dialogo, ripeto l'operazione attivando:
> 
> (a) "Unique ID field" option, il risultato e' identico a quanto prodotto
> in [1]
> 
> (b) "weight field" QGIS crea un nuovo layer che si va a sovrapporre
> perfettamente a dato di partenza[0]
> 
> Secondo Voi, e' corretto? Sbaglio qualcosa?

Ciao, sembra corretto.

Prova con più punti, non solo 4 , con stesso ID:

nel caso (a) creerà tanti baricentri quanti sono gli ID;
nel caso (b) creerà un punto baricentrico usando come peso ID

ciao



-
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] Building Qgis Server only

2019-11-26 Per discussione Henrik Uggla
Hi!

I managed to create a Docker container with Qgis Server on Alpine:
https://hub.docker.com/repository/docker/huggla/qgisserver-alpine

Feedback is welcome.

Regards
HU


Från: Qgis-user  för Henrik Uggla 

Skickat: den 7 januari 2019 12:47:21
Till: Andreas Neumann
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
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
___
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] Stat & mean coordinate(s)

2019-11-26 Per discussione francesco.fiermo...@polito.it

Ciao a Tutti,

su input di un Collega, sto cercando di "verificare" se e come QGIS possa essere utile 
per effettuare "analisi" come, ad esempio:


   areal data

location quotient
coefficient of localisation
lorenz curve
gini coefficient

   point data

mean center
weighted mean center
manhattan media
eucledian media

   directions

circular statistics
direction mean


(qualsiasi suggerimento e/o aiuto e' ovviamente il benvenuto)

Mi sono piantato quasi subito sulla "mean center" (che mi pareva la piu' 
semplice da approfondire).

In sostanza, ho disegnato i vertici di un quadrato (4 points layer)[0] edho calcolato la "mean 
coordinate(s)"[*] che  essere equivalente alla "mean center".
QGIS mi ha creato un nuovo layer contenente un punto "baricentrico"[1] ai4 
vertici. Il risultato ha senso.

Se pero', nello stesso dialogo, ripeto l'operazione attivando:

(a) "Unique ID field" option, il risultato e' identico a quanto prodotto in [1]

(b) "weight field" QGIS crea un nuovo layer che si va a sovrapporre 
perfettamente a dato di partenza[0]

Secondo Voi, e' corretto? Sbaglio qualcosa?

Per la "cronaca", sto usando QGIS version 3.10.0-A Coruña @ Win10

Grazie.

Ciao,
Francesco.
-
[*] Mean coordinate(s)
This algorithm computes a point layer with the center of mass of geometries in 
an input layer.
An attribute can be specified as containing weights to be applied to 
eachfeature when computing the center of mass.
If an attribute is selected in the parameter, features will be grouped 
according to values in this field. Instead of a single point with the center of 
mass of the whole layer, the output layer will contain a center of mass for the 
features in each category.


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