arc2qgis / qlyrx

GNU General Public License v2.0
15 stars 5 forks source link

CIMClassBreaksRenderer not supported, causes crash #15

Open graphikeye opened 3 years ago

graphikeye commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

bogind commented 3 years ago

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.