arc2qgis / lyrxtoqml

scripts for conversion of arcgis lyrx to qgis qml
GNU General Public License v2.0
20 stars 2 forks source link

Error Executing the plugin #27

Open danielraziel opened 3 weeks ago

danielraziel commented 3 weeks ago

Hi! When I try to apply a *.lyrx to a layer, I receive this error:

2024-06-05T19:04:13 WARNING Traceback (most recent call last): File "C:\Users/User1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1613, in run self.apply_lyrx_symbols(layer, self.j_data, geometry_general_type_str) File "C:\Users/User1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1565, in apply_lyrx_symbols labels = self.parseLabels(label_symb_array, label_expessions, layer, rend_idx) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1144, in parseLabels label_settings.placement = 1 ^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: a member of enum 'LabelPlacement' is expected not 'int'

2024-06-05T19:06:55 WARNING Traceback (most recent call last): File "C:\Users/User1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 1611, in run geometry_general_type_str = self.generalise_geom_type(layer) if not isRaster else 'raster' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qlyrx\qlyrx.py", line 386, in generalise_geom_type geometry_type_str = QgsWkbTypes.displayString(int(layer.wkbType())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: QgsWkbTypes.displayString(): argument 1 has unexpected type 'int'

bogind commented 3 weeks ago

Can you add your *.lyrx file and a sample dataset it should work on?

danielraziel commented 2 weeks ago

Can you add your *.lyrx file and a sample dataset it should work on?

Sure! here are the files I wanted to use.

I wanted to use lyrx symbology for the field "NameKarbari"

Landuse Samen.zip

bogind commented 2 weeks ago

@danielraziel I just realized this discussion is in the wrong repository. We moved everything to https://github.com/arc2qgis/qlyrx a few years back. What version of the plugin are you using and did you install it from the plugin manager?

danielraziel commented 2 weeks ago

@danielraziel I just realized this discussion is in the wrong repository. We moved everything to https://github.com/arc2qgis/qlyrx a few years back. What version of the plugin are you using and did you install it from the plugin manager?

Thank you! I'm using QGIS 3.36.2 and at first I installed it from github, and realized it has an update button, so I updated it via plugin manager which is 0.3.3 should I try the version without updating it?