Ticket #3298 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Rule-based renderer: if rule does not use correct case, "test" succeeds, but no features are rendered

Reported by: Alister Owned by: wonder
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Symbology Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Using the rule based renderer in the new symbology:

e.g. I have a layer with a field named ENVCLASS. If I set up rules based on this class, but all with incorrect case (e.g. EnvClass?=1), then the "test" button says the rule works (returns 51 features or whatever), but no features are rendered. If I change one of the rules to use the correct case (ENVCLASS), then all the features are rendered.

Change History

Changed 2 years ago by Alister

Why does Trac set up random links (or whatever they are) with a question mark like the "EnvClass??" above? I didn't put a "?".

Changed 2 years ago by NathanW

Regarding the random links: It does this because of the wiki link syntax. If you have two or more upper case letters in one word it thinks it's a internal wiki page link. Well that is how most wikis work, so I'm guessing it's the same.

Changed 2 years ago by borysiasty

  • owner changed from nobody to wonder

Changed 2 years ago by lutra

  • status changed from new to closed
  • platform changed from Windows to All
  • resolution set to fixed

The filter in the rule based renderer has now a query builder (in trunk), this way the problem should be fixed.

Changed 2 years ago by Alister

  • status changed from closed to reopened
  • resolution fixed deleted

The query builder is very nice, but the bug is still valid.

The user can still manually type in the rule (either in the rule properties window or in the query builder). If the case is incorrect the test button (either in the rule properties window or in the query builder) will say the rule works, but nothing will be rendered.

Changed 2 years ago by wonder

  • status changed from reopened to closed
  • resolution set to fixed

fixed in r14932

Note: See TracTickets for help on using tickets.