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

CIMClassBreaksRenderer not supported, causes crash #15

Open
graphikeye opened this issue Oct 22, 2021 · 3 comments
Open

CIMClassBreaksRenderer not supported, causes crash #15

graphikeye opened this issue Oct 22, 2021 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@graphikeye
Copy link

When loading a style, I receive the following error in the console:

File "C:\Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1601, in run
self.j_data = self.read_lyrx(self.dlg.file_select.filePath())
File "C:\Users/sascari/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 298, in read_lyrx
self.initial_lyrx_parse(data,layer)
File "C:\Users/xxxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1239, in initial_lyrx_parse
for f in renderers[z]['fields']:
KeyError: 'fields'

@bogind
Copy link
Contributor

bogind commented Oct 22, 2021

Can you please edit your issue to provide additional information,
What operating system you are using?
What version of GQIS?
what version of the plugin?
Can you provide the data and .lyrx you are trying to use?

@graphikeye
Copy link
Author

plugin version: 0.3.2
OS: Win 10 64 bit
QGIS: 3.20.3-Odense
Property Values.zip

@bogind
Copy link
Contributor

bogind commented Oct 24, 2021

You seem to have been trying to use a currently unsupported symbology type.
Your .lyrx is using CIMClassBreaksRenderer which is still not supported.
You can check out the readme to see which symbology types are supported.

Will keep this issue open under a new name.
A warning message should be added to prevent questions about this.

@bogind bogind changed the title Error when applying style: KeyError 'fields' CIMClassBreaksRenderer not supported, causes crash Oct 24, 2021
@bogind bogind self-assigned this Oct 24, 2021
@bogind bogind added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants