Re: [Qgis-user] Geological Legends

2016-11-17 Thread DelazJ
Hi,

A feature QGIS provides for some releases now in the styling stuffs is
"Match to saved symbols" in the Advanced combobox under the frame that
displays classification.
It requires you to build a set of symbols, naming each symbol as a feature
attributes (currently a geol name) and then you classify your layer using
the geol name field, select the "Match to saved symbols" item. All your
symbology will be pulled from the list you previously build and each symbol
matches its class.

see the last tip under
http://docs.qgis.org/2.14/endocs/user_manual/working_with_vector/vector_properties.html#categorized-renderer
(though not that verbose)

HTH,
Harrissou

2016-11-17 11:51 GMT+01:00 alvarets :

> Hi!
> Can you show an example?
> Screenshot?
> Curious.
>
> 17.11.2016, 19:45, "damien stephens" :
>
> not so simple,
> If you use the colour function  to set the symbol colours using data
> defined styles, then use the categorised fields to get the text labels for
> the symbols, the wrong colours show up on the legend, although they are
> fine on the map.
> if you just use a single symbol with the data defined styles you only get
> one colour in the legend.
> The trick, and the problem is that although the colours in the r, g  and b
> fields in the table match the geological type, there is no way for QGIS to
> make that relationship. It does not know that all of the polygons with the
> geological type rock1 have the same colour, all that it knows is that each
> polygon with the same  r,g,and b value are colour x. it doesn't use the
> geological type at all to make this determination.
>
> tough problem
> I thought you could try to  categorise it by the colour rgb  function then
> change it to rule based and edit the labels to become the correct geology,
> but even then the colours in the legend are still going to be wrong and
> different to the ones on the map.
>
> my suggestion would be to put in a change request that the legend colour
> match the first occurence of the rgb colour for a given rule when using
> data defined styles.
>
> As a work around the only thing i can think of  is to set the colours
> using the data defined style, apply, then categorise by the geological type
> and use the colour picker to get the colours right in the legend from the
> map. I would suggest labelling by the geol type to ensure you have the
> colours right.
>
> thanks
>
>
> On Thu, Nov 17, 2016 at 10:59 AM, alvarets  wrote:
>
> Of course. Just like any other legend.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Geological-Legends-tp5296020p5296154.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Geological Legends

2016-11-17 Thread alvarets
Hi!Can you show an example?Screenshot?Curious. 17.11.2016, 19:45, "damien stephens" :not so simple,If you use the colour function  to set the symbol colours using data defined styles, then use the categorised fields to get the text labels for the symbols, the wrong colours show up on the legend, although they are fine on the map.if you just use a single symbol with the data defined styles you only get one colour in the legend.The trick, and the problem is that although the colours in the r, g  and b fields in the table match the geological type, there is no way for QGIS to make that relationship. It does not know that all of the polygons with the geological type rock1 have the same colour, all that it knows is that each polygon with the same  r,g,and b value are colour x. it doesn't use the geological type at all to make this determination. tough problemI thought you could try to  categorise it by the colour rgb  function then change it to rule based and edit the labels to become the correct geology, but even then the colours in the legend are still going to be wrong and different to the ones on the map. my suggestion would be to put in a change request that the legend colour match the first occurence of the rgb colour for a given rule when using data defined styles. As a work around the only thing i can think of  is to set the colours using the data defined style, apply, then categorise by the geological type and use the colour picker to get the colours right in the legend from the map. I would suggest labelling by the geol type to ensure you have the colours right. thanks  On Thu, Nov 17, 2016 at 10:59 AM, alvarets  wrote:Of course. Just like any other legend.--View this message in context: http://osgeo-org.1560.x6.nabble.com/Geological-Legends-tp5296020p5296154.htmlSent from the Quantum GIS - User mailing list archive at Nabble.com.___Qgis-user mailing listQgis-user@lists.osgeo.orgList info: http://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Geological Legends

2016-11-17 Thread damien stephens
not so simple,
If you use the colour function  to set the symbol colours using data
defined styles, then use the categorised fields to get the text labels for
the symbols, the wrong colours show up on the legend, although they are
fine on the map.
if you just use a single symbol with the data defined styles you only get
one colour in the legend.
The trick, and the problem is that although the colours in the r, g  and b
fields in the table match the geological type, there is no way for QGIS to
make that relationship. It does not know that all of the polygons with the
geological type rock1 have the same colour, all that it knows is that each
polygon with the same  r,g,and b value are colour x. it doesn't use the
geological type at all to make this determination.

tough problem
I thought you could try to  categorise it by the colour rgb  function then
change it to rule based and edit the labels to become the correct geology,
but even then the colours in the legend are still going to be wrong and
different to the ones on the map.

my suggestion would be to put in a change request that the legend colour
match the first occurence of the rgb colour for a given rule when using
data defined styles.

As a work around the only thing i can think of  is to set the colours using
the data defined style, apply, then categorise by the geological type and
use the colour picker to get the colours right in the legend from the map.
I would suggest labelling by the geol type to ensure you have the colours
right.

thanks


On Thu, Nov 17, 2016 at 10:59 AM, alvarets  wrote:

> Of course. Just like any other legend.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Geological-Legends-tp5296020p5296154.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Geological Legends

2016-11-16 Thread alvarets
Of course. Just like any other legend.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Geological-Legends-tp5296020p5296154.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Geological Legends

2016-11-16 Thread Grant Boxer
I have a polygon file where I have coloured the polygons by geological type
(using the rgb(red,green,blue) function, and wondered if I can create a
legend with the colours and the corresponding geology names?

 

Grant Boxer

Perth, Western Australia

 

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