I have a polygon layer which has a number attribute and a text attribute. When I make a legend in the composer, it automatically chooses the number to display while I would like to have both the number and the text.  How do I display two attributes in a legend? If not possible, how do I select which attribute is displayed in the legend?    I am not looking to have a multi-attribute label in the main window, I wish to have a multi-attribute label in the legend of the composer, or choose which attribute is displayed in the legend.   QGIS 2.8 Win8 64 bit.
120625
I have a line with two 2 attributes. I would like to display both information along with the line in frequent interval, one info above the line and the other is below the line. I am working in QGIS 1.8.0-Lisboa software.
102885
In QGIS Expression builder. I want to obtain the color code of the current feature.   I mean:  My layer contains lines, each one is painted with a different color. Now I want to assign that color to its label. In label definition, in the color property's expressions builder, how could I obtain that attribute?  I tried:  attribute( $currentfeature, 'color')  But it is not working...
58072
In QGIS there is an option to select features of a selected layer using a "identify feature" tool. Then the feature get highlighted in a different color and attribute dialog is poping up. like that i want to highlight the multiple features programatically.  Ex: I have a set of vector layers which consists of number of roads as features. I need to select few roads by looking at its attributes and highlight.  Is there any way of achieving this using python code?
120887
I'm working with a QGIS project with a number of layers. When assembling a printout all visible layers are automatically added to the legend:    I would like to exercise some control over the legend elements are remove some of the entries:    However, as the entries correspond to the upper levels in the hierarchy, deleting them will remove the keys:     1 - 20000    20000 - 40000    ...     I'm working in Qgis 2.8. I'm not interested in modifying my layer structure but only in changing the legend elements.
49672
This question centers the Symbology tab in QGIS 3.0.  I'm working with categorical data describing event venues in the Chicago area. This is a point dataset which will be overlayed on a street basemap.   Bars Nighclubs Theatres Parks Restaurants Galleries Other   I would like to use the Symbology tool in the Properties window to display "Bars" specifically in red, and "all other values" (nightclubs, theaters, other, etc.) in yellow.  The attribute field I am using is called "Type"  Fundamentally, I have solved this problem using the following process:   Symbology Column Drop Menu -> Select "Categorized" "Formula" button "Type"  =  'Bars' (syntax) Select "Classify" button Outcome: classifcation of "0" represented in Yellow, and "1" in Red.  "1" = "Bars", "0" = "all other values/anything that is not a bar" Change Legend entry for "1" value to read "Bars" Change Legend entry for "0" value to read "All Other Venues"   Indeed, this process solves the problem of isolating the desired value and representing all other values.  I would however like to clarify... is this the only way to isolate one value and represent all others?  Many of the folks I work with are coming from the ArcMap 9 and 10 environments, which make this process super easy using selectable options in the GUI rather than formulas.    Have I missed a GUI method of completing this task while solving this problem or should I start working with formulas?
116882
I am using QGIS 2.18.16 on Windows 10.    What I want is a label to appear within the boundaries of a polygon.    I select a layer, then select command Layer>Labelling, and I get:    From here, I can change "No Labels" to "Show labels for this layer".  But I can't actually create label text.  I find a clue in a prior question:    “Labelling polygon using QGIS?”    The answer was:  The layer you are trying to label must have at least one attribute field populated with data. You can then turn on labelling in Layer Properties and select which attribute field to use for your labels.  I can enter command Layer>Open Attribute Table, and what I get is:    If I need something in the attribute table in order to apply a label, how do I accomplish that?
79653
In ArcMap 10.2, I have a layer that has two attributes: depth and magnitude.  Depth should be represented by color: deeper points being lighter and shallower being darker.  Magnitude represented by symbol's size: points with a higher magnitude have a bigger symbol and points with a lower magnitude have a smaller one.  How do i do that?  So, many people has told me to use "multiple attributes" in the symbology dialog. I wish i could upload a screenshot but my firewall seems to have the image service blocked. Let's try with words.   "Multiple attributes" offer these input boxes: "value fields" and "variation by". in "value fields" i select "depth" and "magnitude" in "variation by" we have two buttons: "color ramp" and "symbol size" in "color ramp" i choose "depth" i open "symbol size". There, "depth" is selected. I change it to be "magnitude". open "color ramp" again. No longer "depth" is selected. Now "magnitude" is.   Basically, whenever i select something on "symbol size" or "color ramp", the same selection is duplicated on the other button.
9431
I would like to label data entries with multiple fields (that is easy, using the expression editor) in QGIS 2.18. But I fail to alter the styling of the labels, so that say the colour of the label from one data field (e.g., in the first line) was different to the second label value (second line). An older answer had the standard solution (duplicating the layer, ) I am wondering whether QGIS 2.18 or even the up and coming 3.0 will have a solution.
71821
Not sure if this option ever existed, but the new QGIS version hides a lot of things somewhere else and this seems so simple that I'm kind of convinced it was possible to do this before. I have quite a large data set with ship tracks. I now want to analyse individual ship tracks (made from point layer with  Plugin). However, it is so crowded that it is hard to look at individual tracks. I don't want to save each single track as a new layer, so I wonder if it is possible to select one track in the Attribute table and display only that one on the map/hide the others?
35644
I have a set of data as polygons, each with a Number field with value X. Is there then a way to copy this into X number of polys at the same location? (ideally points distributed across the poly but that's a bonus).  In QGIS I have tried Random Points, but this doesn't inherit attributes, and Join Attributes by Location is useless if the parent polys overlap.  The reason behind this is for collating data easily with the GroupStats plugin.
24326
I want to give multiple colors to different features within a shapefile based on attribute values , is this possible in QGIS ?  If yes what is the procedure ?  Is there a way to provide color by means of hexadecimal codes ?
194
I'm using QGIS 1.8. I'd like to customize label features on an existing shapefile using the new label engine and it's "data defined settings" option. I'd like to know what the attribute table field types should be for each of the settings: All 7 font options, all 2 buffer options, and all 6 position options. Should they all be numeric fields, or some text, or both? I want to create these fields in the attribute table correctly so that I can map them to the label field settings. I can't find information on the proper field types anywhere. Thanks for your thoughts.
117356
Is it possible to make QGIS generate a legend that is based only on the field visible in composer?  There was a ticket marked as resolved five months ago with this question but it doesn't divulge the solution!   There are other questions appearing to ask this but I can't find the solution within them. A workaround I'm using at the moment is to save a new vector layer based on a selection of the field of view and plotting a legend from that.  Is there must be a more sensible way?
28296
I am using  to draw some plots. I usually use \addlegendentry and get a nice default legend box. There are some options for legend box placement and layout (e.g. number of columns).  For some plots I would like to add a title inside the legend box.  Could not find the something about this in . Does anyone know what is the way to customize the legend box?
23002
I have a .dwg (AutoCad file) map full of fields (rectangles) that I'm manipulating with Illustrator. Each rectangle has a text inside it that indicates its number. The problem is that there is no association between the rectangle and its number and that's what I'm trying to do. Also the order or drawing is not the same, when I check the layers.  Is there a way with Illustrator that can group each rectangle to the text inside it and this for all the fields? It is possible manually, but impossible to do it for every single field: about 40,000 rectangles.   I guess the approach should have something to do with "closeness" since it's the only data that tells us the correspondence between a rectangle and its number.
100883
I am looking for a way to create a legend in a regular tikzpicture. I found this    but I don't know    how to put the legend at the wanted position and how to add an entry with just a number instead of a symbol, like '1  number of ...'.   I don't need this. I just want to create easily a box where I have colored lines, colored circles/rectangles.. and colored numbers and the description next to.  Can anyone help me?
83230
I have been struggling for one hour with this simple problem (QGIS 1.8.0-Lisboa, Windows 7) :  I have a raster layer. I would like to display the label and not only the band value when I use the Identify Features button. Is it possible?