Questions tagged [rule-based]

The tag has no usage guidance.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
121 views

Nested rules in QGIS 2.18

I work with QGIS 2.18. I have a polygon shapefile with two atrributes: id (unique for each polygon) and type. I visualize the shapefile using the "type" attribute, but I would like to add a nested ...
4
votes
0answers
110 views

QGIS rule based symbology for rasters in Atlas?

I'm making species distribution maps and have got the Atlas working perfectly using a polygon layer to show the quarter degree grid cells for species observation records. I have ~ 250 species. Problem ...
3
votes
0answers
70 views

SOL help in QGIS: rule based styling to show timestamp increase via gradient

I have some polygon data from a tractor that shows it's route among other things. It has a timestamp column which I'd like to use to show the route in which the tractor drove through the field via a ...
2
votes
1answer
44 views

Applying Rule-Based Style taken from another layer to layer with no geometry

I have two layers "Suburb_Type", that has more than 1000 suburbs in shapes and is styled with categorisation rule. (columns: 'suburb_code', 'geometry', 'category_variable') "Suburbs_in_Study", with ...
2
votes
0answers
85 views

Projecting GeoTIFF onto shaped roofs using CGA rules

I am working with CityEngine 2019.1 and would like to project a GeoTIFF as a texutre onto shaped roofs of 3D-buildings. Currently I am trying with the following code which essentials are described on ...
2
votes
1answer
76 views

Features color based on layer's color in QGIS

Is there a way to synchronize the selection color with a layer's color in QGIS?. Following this post https://gis.stackexchange.com/questions/111784/displaying-only-selected-features-on-map-in-qgis#= ...
2
votes
0answers
40 views

Moving individual labels & rule-based labelling in QGIS

I have been playing around with labels and came to a problem. Hopefully someone can pinpoint whether I'm doing something wrong or there is a systemic hurdle in Qgis. Are you allowed to move labels ...
2
votes
0answers
43 views

Save QGIS style created with espression string builder

I created a rule-based renderer with espression string builder, where I also use the function editor in Python. When I share the style (qml) file with others, I realized that the Python function I ...
2
votes
3answers
513 views

Multiple overriding rules for styling in QGIS 3.4.0

I am a total beginner to QGIS and still struggling with the basics. After a quick research on this forum I could not find the answer to my current issue. What I am trying to do is to colour the ...
2
votes
0answers
168 views

Set a rule for grow region in eCognition

I am using the grow region algorithm in eCognition sofrware in order to merge my candidate class. I want to set the rule : two candidated objects are merged only if the length/width ratio of the ...
1
vote
0answers
55 views

Using 1:n table relationships in rule-based symbology

I would like to use the value of a field/attribute in a parent table as a filter in an expression used to display features in the child table. Specifically, I have a 1:n relationship in my project: ...
1
vote
0answers
37 views

Labeling rule depending on whether label fits in polygon

I'm labeling some country polygons with their names. The data have one attribute with the full country name and another one with a short version (e.g. Sweden/SE). I want to label the countries with ...
1
vote
1answer
57 views

Rule for labeling ways not being part of OSM relation in QGIS

A brief overview of what I want to achieve: Create a map showing all cross-country ski trails in a specific region with some customizations/styling on them. The data come from OpenStreetMap ...
1
vote
0answers
59 views

How to add rules to the topology from a .rul in ArcPy

I am trying to create a new topology using and ArcPy script and I have a lot of rules inside a .rul archive. The function to do that is: arcpy.AddRuleToTopology_management(out_topo, rule_type, in_fc1,...
1
vote
0answers
214 views

Rule-Based Styling not working in QGIS?

I'm trying to create a shapefile I can use as a template for a breeding bird survey. The basic gist was that each species has a two letter code and a colour depending on the BTO listing. Each bird is ...
1
vote
0answers
254 views

Automatic refreshing of Styles and legends in QGIS?

I am a new QGIS user. I come from an Arcgis background, but in my current work for a public administration I must use QGIS for interoperability. As an ArcMap user, I am used to certain "comforts", ...
1
vote
0answers
49 views

QGIS .shp joined to xlsx.vrt; Classify works, Rule-based does not

Very simple set up. Tiger .shp file as a layer. Has a join to an xlsx non geo attribute table as a .vrt .shp has join on MTFCC to MTFCC in xlsx.vrt. xlsx.vrt, has a string field with a brief label ...
1
vote
0answers
121 views

C++ QGIS Conditional Label Colouring

I am using QGIS and C++. When I create a layer of polygons with labels in the center I am able to use a RuleBasedRenderer to control the background colour of the polygon. How do I similarly control ...
0
votes
1answer
61 views

Symbology Based on Meeting Criteria

I have a dataset that includes populations and subpopulations, so for each main population there may be several subpopulations. I have organised this in the table so that a population has the same ...
0
votes
0answers
50 views

QGIS rule-based symbolizsation - label just one rule

I have a line layer. I have created a rule-based symbology, with two rules. Now I want to create a labeling for just one of the rules? Right now the labeling is always visible in both rules. This is ...
0
votes
0answers
48 views

How to set fixed distance labels from data defined centroid in QGIS (3.4)

I have a labelling issue in QGIS (using 3.4, but haven't tried in other versions). I have polygons for which I show an id number as well as some data information in the labels. I've used rule-based ...
0
votes
0answers
19 views

Extruding asset along Base Polygon in CityEngine having difficulties using function insertAlongUV

I have been experimenting with CityEngine to automate modeling of repetitive structures that follows a similar design. In this case, I'm trying to model a bridge that curves along with its length. ...
0
votes
0answers
68 views

QGIS Rule-Based styles fail to render

I'm working with some Ordnance Survey data, specifically the VectorMap Local (in GML format, October 2018) set and attempting to style the layers using the very handy OS provided stylesheets (here: OS ...