Questions tagged [categorized-renderer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
48 views

QGIS styling a legend

I am a newbie working on QGIS 3.6 / Windows 10 I need to style a legend for map with headings and sub headings The main divisions of the legend item need to be subdivided into sub-classes i.e. The ...
2
votes
2answers
53 views

How to sort legend values by an index item in QGIS?

Using categorized classification method for creating a legend on QGIS permits to create an automatic legend based on the values or categories defined in on item or a combination of items, or a ...
1
vote
0answers
33 views

How to add or delete one category in Categorized Symbol Renderer PyQGIS QGis 3.x

I need code for add o delete Categorized Symbol in QGIS 3 category = ? More information: https://qgis.org/pyqgis/3.4/core/QgsCategorizedSymbolRenderer.html
1
vote
1answer
186 views

Applying categorized render to polygons

I'm trying to apply a color ramp on a categorized render in QGIS 3.4 (via the Python console). I started by adapting the solution for a catagorized symbol layer - to QGIS 3.4 but this applies a ...
0
votes
2answers
124 views

Applying SVG marker as additional symbol to polygon layer in QGIS 3

I would like to add SVG markers as an additional symbol to a polygon layer. The polygon layer is rendered with a categorized symbol renderer with different fill-color, and I want to add SVG markers ...
0
votes
2answers
39 views

Don't show empty categories in classified style

I have a geojson file containing line and polygon features. I want to render them according to the field Feature Type which contains different types. When I use categorized symbology, it creates ...
2
votes
1answer
378 views

Categorized symbols are not working in QGIS 3.4

I'm trying to generate categorized symbols for a polygon layer in QGIS 3.4. The code below should generate random colour polygons for each record of 'run' layer and I'm not getting any error message. ...
1
vote
1answer
108 views

Why do symbol categories disappear when unchecked in QGIS?

I am using Qgis 2.18.25 In a vector layer, when using the categorized style, when I uncheck a category the category disappears. Is there any way to avoid this behavior? Actually I do not really ...
2
votes
1answer
98 views

Getting “value”, “color”, “label” from existing palette raster layer in PyQGIS?

renderer = activaterlayer.renderer() symboloyitems = renderer.legendSymbologyItems() label = symboloyitems[i][0] color = symboloyitems[i][1].getRgb() value = ? How can I get the ...
1
vote
1answer
162 views

PyQGIS - categorized renderer classification - create category with 'no value' or 'any other value'

The code snipped mentioned in Automatic pyqgis categorized renderer classification and Apply symbol to each feature (Categorized symbol) automatically create categorized renderers and determine ...
0
votes
1answer
431 views

QGIS categorized legend show only with data [duplicate]

I generate maps from CSV to which I apply a style sheet. In the stylesheet defines the set of items I may encounter. But in most csv, there are not all the elements defined in style. So I find ...
1
vote
0answers
52 views

QgsPointDisplacementRenderer: setLegendSymbolItem creates dump [closed]

trying to set up a nice layout using the QgsPointDisplacementRenderer, but I get a dump everytime I try to load the layer I create through the following renderer.. The dump only occurs when I use the ...
5
votes
1answer
569 views

QGIS feature count is wrong after changing categories programmatically

I want to delete categories in my vector-layer style if the feature-count for the category is zero. The following code works so far if you run it in the python console but the feature count for the ...
1
vote
1answer
511 views

Managing rule-based renderer in PyQGIS?

This is my first project in QGIS and I'm also quite new to Python. PyQGIS is more than a challenge for me! I found code in How to programmatically set a rule-based renderer in QGIS? to set a rule ...
2
votes
1answer
161 views

Can I rely on the order of layer categories in pyqgis?

Follow-up to this question, after input considering this other question: To figure out which feature in a QGis vector layer, styled with a categorized renderer, is currently visible (i.e. enabled), I ...
3
votes
1answer
573 views

How to change visibility of a particular layer category in PyQGIS?

I've got one layer with its symbol MARKER, categorized by an expression in 4 colors. The colors depends on a value of a column. So from the TOC, I'm able to click and enable/disable, as they were ...
2
votes
1answer
306 views

QGIS coloring NULL values

I am using QGIS Version 2.14.3. I have a map with polygons and a lot of different attributes. Some polygons have NULL values in some columns. I've tried to color the polygons with properties->style->...
3
votes
1answer
3k views

How to make a multi color map with one shapefile layer in QGIS?

I am working with a shapefile layer of the world. All the countries are in the Attribute table each one in a different row. I tried to make each polygon in a different color so the countries will be ...
2
votes
1answer
513 views

How to change colors for layers?

How to save changing of colors? For example, we change color for all features of a layer in a loop. But as a result, I see only latest changing. My code does not work perfectly: for k in masLevel: ...
8
votes
1answer
565 views

Calculating colors of the squares in a vector grid in QGIS 2.18.5

I have a layer with many buildings as points on a map. One of the attributes of each building is "download_speed". I want to put a square grid (100 x 100 meters) on top of the map. The squares should ...
7
votes
2answers
785 views

If two symbols in same QGIS layer are too close, show only one?

I have a shapefile layer with different underwater, over water and water surface stones. These are often too close to each other to be shown nicely on the print composer generated map. I use svg ...
3
votes
1answer
516 views

Scripting the mapping of style columns attributes in QGIS?

In a vector layer is it possible to tune up/scripting the style columns attributes to map "Label" column to a specific attribute field/column instead of being populated with same content as the "Value"...
1
vote
1answer
172 views

Creating grouping for C# ArcObjects UniqueValueRenderer?

Within a C# procedure I am able to successfully render discrete data values using: pValRen.AddValue("A11", fieldName, (ISymbol)pExpressWay); pValRen.AddValue("A15", fieldName, (ISymbol)pExpressWay); ...
2
votes
0answers
315 views

qgis2web categorized renderer symbology with svg markers issue [closed]

In a simple QGIS (2.14.5LTR) project I've set up categorized renderer symbology for a small shapefile which looks like this: Categorization is based on a text field, cp. my comment on qgis2web export ...
1
vote
0answers
498 views

qgis2web export categorized renderer symbology

I'm trying to export my QGIS (2.14.5) categorized renderer symbology to a leaflet project with qgis2web (1.19.0). My example QGIS project looks like this: The resulting (preview, respectivly) ...
2
votes
1answer
607 views

Assigning QgsCategorizedSymbolRenderer default ramp colors?

I have a plugin and I want to symbology a vector file with some default ramp colors but I see that in graduated symbology is not so easy as in graduated symbology. Is it possible to assign a default ...