Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS-Field calculator further refinements #32

Open
RogerCornwell opened this issue Apr 25, 2022 · 0 comments
Open

QGIS-Field calculator further refinements #32

RogerCornwell opened this issue Apr 25, 2022 · 0 comments

Comments

@RogerCornwell
Copy link

The closed issue QGIS-Field calculator missing trees resolved that issue but left several other blank areas on my map. By using Identify Features I determined that these had multiple values in descriptiveTerm or descriptiveGroup, for example descriptiveTerm Rough Grassland, Scrub.
Using the same technique as the one that resolved the missing trees issue, I replaced "descriptiveTerm" ~ with array_contains(descriptiveTerm, and added the necessary closing bracket. For example
WHEN "descriptiveTerm" ~ 'Rough Grassland' THEN 23
was replaced with
WHEN array_contains(descriptiveTerm, 'Rough Grassland') THEN 23

and likewise for descriptiveGroup, in both the style_code and style_description SQL code. This has resulted in a lot fewer blank spaces on the map. I have attached my code - you will see I did not change everything, I was being cautious.

I hope others find this useful.
topographicarea_SQL_style_code.txt
topographicarea_SQL_style_description.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant