[Qgis-user] How do I specify several different marker symbols for a single layer?

Andreas Neumann a.neumann at carto.net
Tue Jan 6 01:26:30 PST 2015


Hi Tom,

You can nest the CASE statments, like:

CASE WHEN expression1 THEN
   CASE WHEN expression1_1 THEN xxx
   WHEN expression1_2 THEN yyy
   ELSE zzz END
END

I am sure there are some examples, both in the internal help or also if 
you google for it.

As for SVG paths. You will have to experiment. You can use paths 
relative to the SVG symbol repository or absolute paths. You can also 
concatentate paths from different variables.

Good luck,
Andreas

Am 2015-01-05 14:08, schrieb Tom Lennon:
> Hi All;
> What I am looking for is something like Layer
> Properties>Style>Categorized>Labels>Categorized. I am Surprised to see
> how much Bernd is able to do proofing layers with line data defined
> line styles. What I need is data defined label styles for each data
> defined line style. I am using QGIS 2.6 on stand alone PC and cannot
> figure a way to get a data defined marker symbol background into a
> CASE rule. I tried adding the SVG path but it is disregarded or errors
> out because I need 2 settings (the symbol path and the field name for
> text.). This if for a road layer which includes class (interstate,
> federal...) and number (route number for showing as text on the
> background shape. Showing all as the same marker symbol would not work
> because numbers are repeated between the classes. All I have been able
> to do is open multiple copies of the same layer, select a different
> class for each and apply a single marker symbol background for that
> class. That means there will be 8 copies of the road shapefile in this
> case. Is there a way using CASE to do this?
> Thanks
> Tom
> 
> On Sat, Jan 3, 2015 at 6:33 AM, Andreas Neumann <a.neumann at carto.net>
> wrote:
> 
>> Hi,
>> 
>> Background symbols for highway numbers are better done in the
>> labelling settings, and not with different styles. That you way you
>> only need one layer and one category - the rest is done with rules
>> for the individual graphical properties. You can use CASE rules for
>> having different simple shape or SVG backgrounds.
>> 
>> Andreas
>> 
>> On 03.01.2015 01:12, Tom Lennon wrote:
>> 
>>> Hi All
>>> I am trying to add highway route number background symbols to a
>>> transportation layer. There are 9 different unique symbols. I can
>>> only specify one per layer. I tried using Layer Properties>Feature
>>> Subset> query but could only specify one feature set for the
>>> layer. I also tried double clicking the line symbol for a subset
>>> under style and the green plus sign but that only produced lines
>>> drawn with the marker symbol. Do I need to add 9 copies of the
>>> layer, set the properties for each subset I need and symbolize
>>> each individually?
>>> Hope I have missed some easier method.
>>> Tom
>>> 
>>> --
>>> 
>>> tolennon at gmail.com
>>> 
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user [1]
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user [1]
> 
> --
> 
> tolennon at gmail.com
> 
> Links:
> ------
> [1] http://lists.osgeo.org/mailman/listinfo/qgis-user



More information about the Qgis-user mailing list