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

Added small section to fix an issue with QGIS expression #251

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions plugin/style_converter/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,16 @@ def _parse_expr(expr, take=None):
raise RuntimeError("Data expression operator not implemented: ", op)

fields = _get_qgis_fields(expr)[:take]

#issue starts here and can be checked for and fixed
#when the http_get returns byte information, that 'b' sometimes sticks to icon name
#simply check and if it is there, remove
b_string = "'b'"
for s, item in enumerate(fields):
if b_string in item:
new_item = item[2:-1]
fields[s] = new_item

result = "+".join(fields)
return escape_xml(result)

Expand Down