Re: [Qgis-user] Multi-core use

2021-05-18 Thread Nicolas Cadieux
Hi,
Multicore is accessible for the rendering.  Some algorithms use OpenGL.  I 
guess some multiprocessing could be accessed when writing a python plugin.  Not 
sure about this last one.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 18 mai 2021 à 19:26, Grant Boxer  a écrit :
> 
> I have had a query from a user - does QGIS uses multi cores during 
> processing?
> 
> Cheers Grant
> Perth Western Australia
> 
> ___
> 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] Multi-core use

2021-05-18 Thread Nyall Dawson
On Wed, 19 May 2021 at 08:26, Grant Boxer  wrote:
>
> I have had a query from a user - does QGIS uses multi cores during
> processing?

It depends on the particular algorithm you're running, but generally
they will only use a single core.

Nyall
___
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] Multi-core use

2021-05-18 Thread Grant Boxer
I have had a query from a user - does QGIS uses multi cores during 
processing?


Cheers Grant
Perth Western Australia

___
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] loading WCS through PyQGIS

2021-05-18 Thread Guillermo D'Angelo
Thank you vey much Richard, this will be usefull for sure. 


Guillermo D'Angelo 
Departamento de Geografía 
DESyTC - DINTAD - MIDES 
(+598) 240 0 0302 int. 3151 



De: "Richard Duivenvoorde"  
Para: "Guillermo D'angelo" , "qgis-user" 
 
Enviados: Martes, 18 de Mayo 2021 16:01:15 
Asunto: Re: [Qgis-user] loading WCS through PyQGIS 

On 5/18/21 8:27 PM, Guillermo D'Angelo wrote: 
> Hello list. 
> Is it possible to load a raster from a Web Coverage Service through PyQGIS? 
> I'm struggling with this and can't find a working code snippet on the web. 

Hi, I wrote some about WCS requests for our national service here: 
https://qgis.nl/2019/01/20/wcs-qgis-en-pdok/?lang=en 
and here is some working code to create the uri needed: 
https://github.com/rduivenvoorde/pdokservicesplugin/blob/master/pdokservicesplugin.py#L425-L445
 

Hope this is usefull 

Regards, 

Richard Duivenvoorde 
___
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] loading WCS through PyQGIS

2021-05-18 Thread Richard Duivenvoorde
On 5/18/21 8:27 PM, Guillermo D'Angelo wrote:
> Hello list.
> Is it possible to load a raster from a Web Coverage Service through PyQGIS?
> I'm struggling with this and can't find a working code snippet on the web.

Hi, I wrote some about WCS requests for our national service here:
https://qgis.nl/2019/01/20/wcs-qgis-en-pdok/?lang=en
and here is some working code to create the uri needed:
https://github.com/rduivenvoorde/pdokservicesplugin/blob/master/pdokservicesplugin.py#L425-L445

Hope this is usefull

Regards,

Richard Duivenvoorde
___
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] how to synchronize the qgis point layer with the source tables

2021-05-18 Thread Thayer Young
 Hi Danny,
I think this is best approached from within your MySQL database. It sounds like 
you are looking to make an Updatable View. This article should be helpful to 
you:https://dev.mysql.com/doc/refman/5.7/en/view-updatability.html
Failing that you may also want to look at using INSTEAD OF triggers.
There are many relevant questions and answers, for example on Stack Overflow, 
for MySQL and updatable views.
-Thayer

> Date: Tue, 18 May 2021 07:47:43 +0200
> From: Danny 
> To: qgis-user@lists.osgeo.org
> Subject: [Qgis-user] how to synchronize the qgis point layer with the source 
>tables> Message-ID: 
> 
>Content-Type: text/plain; charset="utf-8"
<https://stackoverflow.com/posts/67565307/timeline>

I have the nexts questions:

I have 5 tables from phpmyadmin webpage synchronize with qgis. If i update
the attributes table in webpage or qgis it syncs. I used the 5 tables for
create the point layer.

My problem is that one time created the point layer based in this 5 tables,
When I update the dates directly in the layer point is not synchronize with
the 5 tables.

Either If one time created the point layer, if I modify the 5 source
tables, the data of the point layer is not modified and another time i need
to create the point layer for update it.

So , exist any option for activate the synchronize?
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.osgeo.org/pipermail/qgis-user/attachments/20210518/bab07e15/attachment-0001.html>

  ___
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] loading WCS through PyQGIS

2021-05-18 Thread Guillermo D'Angelo
Hello list. 
Is it possible to load a raster from a Web Coverage Service through PyQGIS? 
I'm struggling with this and can't find a working code snippet on the web. 

Thanks in advance. 



Guillermo D'Angelo 
Departamento de Geografía 
División de Estudios Sociales y Trabajo de Campo 
Dirección Nacional de Transferencias y Análisis de Datos 
Av. 18 de julio 1453 | Piso 1 Of. 110 
Tel.: (+598) 2400 0302, int. 3151 
[ mailto: | gdang...@mides.gub.uy ] 
[ http://www.mides.gub.uy/ | www.mides.gub.uy ] 

___
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] 3.18.3 version on macOS isn't available

2021-05-18 Thread Luis Puerto
Hey! 

The version QGIS 3.18.3 version is not available on macOS although on the site 
is advertised and if you open QGIS is telling you that there is a new version. 
However, when you download you get the 3.18. 
2.
 

The checksum is also wrong 
https://qgis.org/downloads/macos/qgis-macos-pr.sha256sum 
 and it's advertising 
the version 3.18.1. 

Where should I report this? 

Cheers!
Luis

___
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] Select data from a specific layer

2021-05-18 Thread Dario




I try to answer without attached images (size limit)...

values are correct. I made first a virtual field in which I have "N" or "R" in 
the "Colore" filed through an expression and it works. My problem is the colour 
now.

I tried also with 'Colore' instead of "Colore", but nothing change.

Here the code:

CASE
When
get_feature('V_TB_ATTIVITA_PT_NR','Colore','N')='N' then color_rgb (0,0,0)
When
get_feature('V_TB_ATTIVITA_PT_NR','Colore','R')='R' then color_rgb (255,0,0)
END

I'm pretty sure that in expression 'V_TB_ATTIVITA_PT_NR','Colore','N'... 
'N' does not have sense, but I don't know what to pu... sorry, but I'm a super 
beginner with code :(

Cheers

Il giorno mar 18 mag 2021 alle ore 08:39 Dario C  ha 
scritto:
> 
> 
> 
> values are correct. I made first a virtual field in which I have "N" or "R" 
> in the "Colore" filed through an expression and it works. My problem is the 
> colour now.
> 
> I tried also with 'Colore' instead of "Colore", but nothing change.
> 
> Here the code:
> 
> CASE
> When
> get_feature('V_TB_ATTIVITA_PT_NR','Colore','N')='N' then color_rgb (0,0,0)
> When
> get_feature('V_TB_ATTIVITA_PT_NR','Colore','R')='R' then color_rgb (255,0,0)
> END
> 
> I'm pretty sure that in expression 'V_TB_ATTIVITA_PT_NR','Colore','N'... 
> 'N' does not have sense, but I don't know what to pu... sorry, but I'm a 
> super beginner with code :(
> 
> Cheers
> 
> Il giorno mar 18 mag 2021 alle ore 08:32 Ujaval Gandhi 
>  ha scritto:
>> get_feature() will get you the feature.Your current expression will get you 
>> the first feature from 'V_TB_ATTIVITA_PT_NR' layer where the "Colore" value 
>> is 'N'. - I don't think that is what you want.  You need to query for a 
>> feature from another layer that relates to the current feature, (using a 
>> common field value).  Once you get the feature, you can use the 
>> attributes(feature)['Colore'] to read the "Colore' field from that feature. 
>> 
>>  
>> Ujaval Gandhi
>> Spatial Thoughts
>> mobile: +91-8095684687
>> email: uja...@spatialthoughts.com
>> 
>> 
>> 
>> 
>> On Tue, May 18, 2021 at 4:35 AM Delaz J  wrote:
>>> Hi Dario,
>>> 
>>> Could you try with 'Colore' and not "Colore" (pay attention to the simple 
>>> vs double quotes)?
>>> 
>>> Regards,
>>> 
>>> Harrissou
>>> 
>>> Le 18/05/2021 à 00:41, Dario C a écrit :
   Hi, thank you for your reply, but I still don't understand how to do... 
 sorry
 
 i tried to write this code in colour expression, but I don't understand 
 what "value" is in get_feature :
 
 CASE
 When
 get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'N')='N' then color_rgb (0,0,0)
 When
 get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'R')='R' then color_rgb 
 (255,0,0)
 END
 
 Consider that I have a virtual field called "Colore" where I have 'N' or 
 'R' in case it is black or red color.
 
 Thank you for your kind availability.
 
 cheers
 
 Il giorno lun 17 mag 2021 alle ore 09:09 Ujaval Gandhi 
  ha scritto:
> You can select the layer under 'Plot Parameters' and its attributes will 
> be available in the expression. (see attached screenshot).
> 
> If you need to get the attribute from another layer, you can use the 
> get_feature() function to get feature from another layer by specifying 
> the layer name.
>   
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> 
> 
> 
> 
> 
> On Mon, May 17, 2021 at 2:47 AM Dario  wrote:
>> Hi,
>> 
>> I should get some data from a specific field of a specific layer but I’m 
>> stuck.
>> 
>> I’m using “Data Ploty” plug-in and I’d like to customise the colour of 
>> the chart using expression. 
>> As I’m working on layout I can’t see any field into expression menu, so 
>> I need to call a specific layer and then the field.
>> I’d like to write something like that but, of course, selecting the 
>> correct layer:
>> 
>> CASE
>> WHEN "Civici" = 'Neri' THEN color_rgb(0,0,0)
>> ELSE color_rgb (255,0,0)
>> END
>> 
>> 
>> Thank you in advance.
>> 
>> Cheers
>> 
>> _
>> ___
>> 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: 

Re: [QGIS-it-user] errore nella sintassi di rastercalculator

2021-05-18 Thread Andrea Giudiceandrea
Giacomo Fontanelli-2 wrote
> rasterLayer = QgsRasterLayer("home/test/prova.tif", "raster")
> 
>> > "EXPRESSION": "10 * ( log10 ( rasterLayer@1 ) )",

Ciao Giacomo,
il nome del raster nell'espressione è errato. Nell'espressione non devi
usare il nome della variabile a cui è stato assegnato l'oggetto
QgsRasterLayer.

Il riferimento al raster da usare nell'espressione è il nome base del file
(nel tuo caso "prova", quindi prova@1 per la banda 1) se il layer raster non
è presente nella mappa del progetto, oppure anche il nome assegnato al layer
(nel tuo caso "raster", quindi raster@1 per la banda 1) se il layer è
presente nella mappa del progetto.

Per maggiori informazioni:
https://docs.qgis.org/3.16/en/docs/user_manual/processing_algs/qgis/rasteranalysis.html#raster-calculator

Fammi sapere se è questo il problema.

A presto.

Andrea



--
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] Slooooow spatial joins

2021-05-18 Thread ryanpeel
Worked like a charm!  and FAST! Thanks all!

Don't understand what the overhead is with QGIS and why it is so much slower
though but on to other challenges I guess.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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] Slooooow spatial joins

2021-05-18 Thread Karl Magnus Jönsson
Hi!
How about just execute some SQL in an algorithm or model since you have the 
data in Postgis? And do the spatial join directly in the database. Like (not 
tested):
UPDATE polygonlayer p
SET p.field = pt.field
FROM pointlayer pt
WHERE st_within(pt.geom,p.geom);

Karl-Magnus Jönsson

Från: Qgis-user  För Ryan Peel
Skickat: den 18 maj 2021 12:24
Till: Nyall Dawson 
Kopia: qgis-user 
Ämne: Re: [Qgis-user] Slow spatial joins

I can appreciate that but it forces to create another layer/file I think.  I 
really don't want to have to re-import my entire table back into postgis just 
to get this one column.

On Mon, May 17, 2021, 10:29 PM Nyall Dawson 
mailto:nyall.daw...@gmail.com>> wrote:
On Tue, 18 May 2021 at 11:59, Ryan Peel 
mailto:ryanp...@gmail.com>> wrote:
>
> I have tried using MMQGIS plugin, refFunctions geomwith function and the 
> aggregate function.  I am using 3.18 QGIS
>
> Despite having spatial indexes on both tables, when I try to use any of these 
> operations to assign the value of a field in the polygon layer to one in the 
> point layer, it goes very slow.  Like, ridiculously slow and of no value.  
> And, I only have 600 records in the points layer and just a few thousand 
> records in the polygon layer.
>
> What can I do to speed this up?

The absolute fastest way to join is to use the Processing tool: Join
Attributes by Location -- no plugins necessary :D

Nyall
___
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] Slooooow spatial joins

2021-05-18 Thread Ryan Peel
I can appreciate that but it forces to create another layer/file I think.
I really don't want to have to re-import my entire table back into postgis
just to get this one column.

On Mon, May 17, 2021, 10:29 PM Nyall Dawson  wrote:

> On Tue, 18 May 2021 at 11:59, Ryan Peel  wrote:
> >
> > I have tried using MMQGIS plugin, refFunctions geomwith function and the
> aggregate function.  I am using 3.18 QGIS
> >
> > Despite having spatial indexes on both tables, when I try to use any of
> these operations to assign the value of a field in the polygon layer to one
> in the point layer, it goes very slow.  Like, ridiculously slow and of no
> value.  And, I only have 600 records in the points layer and just a few
> thousand records in the polygon layer.
> >
> > What can I do to speed this up?
>
> The absolute fastest way to join is to use the Processing tool: Join
> Attributes by Location -- no plugins necessary :D
>
> Nyall
>
___
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] errore nella sintassi di rastercalculator

2021-05-18 Thread Giacomo Fontanelli
Ciao Andrea

ho risolto seguendo il tuo consiglio, ovvero la sintassi giusta per il
parametro expression è

  "EXPRESSION": "10 * ( log10 ( home/test/prova.tif@1 ) )",

grazie mille

Giacomo



Il giorno mar 18 mag 2021 alle ore 11:24 Andrea Giudiceandrea <
andreaer...@libero.it> ha scritto:

> Giacomo Fontanelli-2 wrote
> > rasterLayer = QgsRasterLayer("home/test/prova.tif", "raster")
> >
> >> > "EXPRESSION": "10 * ( log10 ( rasterLayer@1 ) )",
>
> Ciao Giacomo,
> il nome del raster nell'espressione è errato. Nell'espressione non devi
> usare il nome della variabile a cui è stato assegnato l'oggetto
> QgsRasterLayer.
>
> Il riferimento al raster da usare nell'espressione è il nome base del file
> (nel tuo caso "prova", quindi prova@1 per la banda 1) se il layer raster
> non
> è presente nella mappa del progetto, oppure anche il nome assegnato al
> layer
> (nel tuo caso "raster", quindi raster@1 per la banda 1) se il layer è
> presente nella mappa del progetto.
>
> Per maggiori informazioni:
>
> https://docs.qgis.org/3.16/en/docs/user_manual/processing_algs/qgis/rasteranalysis.html#raster-calculator
>
> Fammi sapere se è questo il problema.
>
> A presto.
>
> Andrea
>
>
>
> --
> 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] errore nella sintassi di rastercalculator

2021-05-18 Thread Giacomo Fontanelli
Ciao Andrea

il file in ingresso rasterLayer equivale a

rasterLayer = QgsRasterLayer("home/test/prova.tif", "raster")

e il file outPathFile è "home/test/out.tif"

ho provato anche a cambiare formula ma il risultato non cambia

grazie


Il giorno lun 17 mag 2021 alle ore 20:56 Andrea Giudiceandrea <
andreaer...@libero.it> ha scritto:

> Giacomo Fontanelli-2 wrote
> > potreste dirmi in cosa sbaglio durante la scrittura di questa sezione del
> > mio script che serve ad automatizzare alcune operazioni svolte con raster
> > calculator?
> >
> > parameters = {
> > "EXPRESSION": "10 * ( log10 ( rasterLayer@1 ) )",
> > "LAYERS": rasterLayer,
> > "CELLSIZE": None,
> > "EXTENT": None,
> > "CRS": None,
> > "OUTPUT": outPathFile}
> >
> > processing.run('qgis:rastercalculator', parameters)
>
> Ciao Giacomo,
> hai provato con un'altra espressione? Cosa contengono esattamente le
> variabili rasterLayer e outPathFile?
>
> Io ho testato il tuo pezzo di codice sia nella console di Python sia
> eseguendolo in uno script in QGIS 3.16.5 e non ho avuto problemi a creare
> un
> nuovo raster con l'espressione indicata.
>
> A presto.
>
> Andrea
>
>
>
> --
> 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-user] google road layer loaded incorrect

2021-05-18 Thread ngoc pham
I add google road map layer to canvas, but it seem load incorrect CRS?
QgsDataSourceUri ds;
ds.setParam("type", "xyz");
ds.setParam("url", QString("
https://mt1.google.com/vt/lyrs=m={x}={y}={z};));
QgsRasterLayer* layer = new QgsRasterLayer(ds.encodedUri(), "my map",
"wms");
QList layers = mCanvas->layers();
layers.insert(0, layer);
mCanvas->setLayers(layers);
mCanvas->setExtent(layer->extent());

but when I using qgis desktop, add XYZTiles with Google Maps, I get map is
square and no any information from provider about CRS, missed extent
___
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] Select data from a specific layer

2021-05-18 Thread Ujaval Gandhi
get_feature() will get you the feature.Your current expression will get you
the first feature from 'V_TB_ATTIVITA_PT_NR' layer where the "Colore" value
is 'N'. - I don't think that is what you want.  You need to query for a
feature from another layer that relates to the current feature, (using a
common field value).  Once you get the feature, you can use the
attributes(feature)['Colore'] to read the "Colore' field from that feature.

[image: Logo] 
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon]   [image:
Twitter icon] 



On Tue, May 18, 2021 at 4:35 AM Delaz J  wrote:

> Hi Dario,
>
> Could you try with 'Colore' and not "Colore" (pay attention to the simple
> vs double quotes)?
>
> Regards,
>
> Harrissou
> Le 18/05/2021 à 00:41, Dario C a écrit :
>
>   Hi, thank you for your reply, but I still don't understand how to do...
> sorry
>
> i tried to write this code in colour expression, but I don't understand
> what "value" is in get_feature :
>
> CASE
> When
> get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'N')='N' then color_rgb (0,0,0)
> When
> get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'R')='R' then color_rgb
> (255,0,0)
> END
>
> Consider that I have a virtual field called "Colore" where I have 'N' or
> 'R' in case it is black or red color.
>
> Thank you for your kind availability.
>
> cheers
>
> Il giorno lun 17 mag 2021 alle ore 09:09 Ujaval Gandhi <
> uja...@spatialthoughts.com> ha scritto:
>
>> You can select the layer under 'Plot Parameters' and its attributes will
>> be available in the expression. (see attached screenshot).
>>
>> If you need to get the attribute from another layer, you can use the
>> get_feature() function to get feature from another layer by specifying the
>> layer name.
>> [image: Logo] 
>> Ujaval Gandhi
>> Spatial Thoughts
>> mobile: +91-8095684687
>> email: uja...@spatialthoughts.com
>> [image: LinkedIn icon]   
>> [image:
>> Twitter icon] 
>>
>>
>>
>>
>> On Mon, May 17, 2021 at 2:47 AM Dario  wrote:
>>
>>> Hi,
>>>
>>> I should get some data from a specific field of a specific layer but I’m
>>> stuck.
>>>
>>> I’m using “Data Ploty” plug-in and I’d like to customise the colour of
>>> the chart using expression.
>>> As I’m working on layout I can’t see any field into expression menu, so
>>> I need to call a specific layer and then the field.
>>> I’d like to write something like that but, of course, selecting the
>>> correct layer:
>>>
>>> CASE
>>> WHEN "Civici" = 'Neri' THEN color_rgb(0,0,0)
>>> ELSE color_rgb (255,0,0)
>>> END
>>>
>>>
>>> Thank you in advance.
>>>
>>> Cheers
>>>
>>> _
>>> ___
>>> 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 listqgis-u...@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