planetfederal / qgis-milstd2525-plugin

GNU General Public License v2.0
13 stars 10 forks source link

Update to the latest versions QGIS #16

Open gontsa opened 1 year ago

gontsa commented 1 year ago

Hello, do you have any possibility to update the plugin so that it works in newer versions of QGIS (I have 3.30.2-'s-Hertogenbosch). Or tell me where to look to fix it on my own. There is a need for your plugin. Thank you!

File "/home/fedir/.local/share/QGIS/QGIS3/profiles/fg/python/plugins/milstd2525/renderer.py", line 162, in createRendererWidget
              return MilStd2525RendererWidget(layer, style, renderer)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/home/fedir/.local/share/QGIS/QGIS3/profiles/fg/python/plugins/milstd2525/renderer.py", line 128, in __init__
              self.r = MilStd2525Renderer(field=field)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/home/fedir/.local/share/QGIS/QGIS3/profiles/fg/python/plugins/milstd2525/renderer.py", line 54, in __init__
              self._defaultSymbol = getDefaultSymbol(int(size))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/home/fedir/.local/share/QGIS/QGIS3/profiles/fg/python/plugins/milstd2525/milstd2525symbology.py", line 134, in getDefaultSymbol
              symbolLayer.setSizeUnit(3)
             TypeError: QgsMarkerSymbolLayer.setSizeUnit(): argument 1 has unexpected type 'int'
RiiPiii commented 4 months ago

MIL-STD-2525 is not working with QGIS 3.34 LTR