nick1
24 september 2024 om 09:33
1
Zodra ik de cityjson inlaad bij de gpkg van tile 9-284-556 krijg ik een python error.
Dit gebeurd eigenlijk bij elke tile.
ik gebruik de niewste versie: v2024.04.20
ik volg deze video:
Mis ik iets of werken de cityjsons niet meer
2024-09-24T11:25:54 WARNING Traceback (most recent call last):
File "C:\Users/nickv/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\cityjson_loader.py", line 299, in run
self.load_cityjson(filepath)
File "C:\Users/nickv/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\cityjson_loader.py", line 321, in load_cityjson
skipped_geometries = loader.load()
^^^^^^^^^^^^^
File "C:\Users/nickv/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\core\loading.py", line 129, in load
self.styler.apply(vl)
File "C:\Users/nickv/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\core\styling.py", line 67, in apply
symbol.setMaterial(material)
^^^^^^^^^^^^^^^^^^
AttributeError: 'QgsPolygon3DSymbol' object has no attribute 'setMaterial'```
Door een wijziging in QGIS werkt de plugin niet meer correct.
Hier de wijziging:
committed 03:45PM - 30 Nov 22 UTC
* qgspoint3dsymbol: Rename mMaterial attribute to mMaterialSettings
mMaterial… is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.
* qgspoint3dsymbol: Rename materialSettings getter and setter
See previous commit.
* qgsline3dsymbol: Rename mMaterial attribute to mMaterialSettings
mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.
* qgsline3dsymbol: Rename materialSettings getter and setter
See previous commit.
* qgspolygon3dsymbol: Rename mMaterial attribute to mMaterialSettings
mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.
* qgspolygon3dsymbol: Rename materialSettings getter and setter
See previous commit.
* qgsmesh3dsymbol: Rename mMaterial attribute to mMaterialSettings
mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.
* qgsmesh3dsymbol: Rename materialSettings getter and setter
See previous commit.
* qgsgoochmaterialsettings: fix indentation
De fout is ook aan de makers van de plugin gemeld, en inmiddels gefixt maar nog niet gedployed naar de QGIS plugin repository:
opened 12:48PM - 06 Nov 23 UTC
Hello @liberostelios ,
I get an error message when loading CityJSON:
Ein Fe… hler trat bei der Ausführung von Python-Code auf:
AttributeError: 'QgsPolygon3DSymbol' object has no attribute 'setMaterial'
Traceback (most recent call last):
File "C:\Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\cityjson_loader.py", line 299, in run
self.load_cityjson(filepath)
File "C:\Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\cityjson_loader.py", line 321, in load_cityjson
skipped_geometries = loader.load()
File "C:\Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\core\loading.py", line 129, in load
self.styler.apply(vl)
File "C:\Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CityJSON-loader\core\styling.py", line 39, in apply
symbol.setMaterial(material)
AttributeError: 'QgsPolygon3DSymbol' object has no attribute 'setMaterial'
Python-Version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS-Version: 3.32.2-Lima Lima, c0b8833964
Python-Pfad:
C:/osgeo4w/apps/qgis/./python
C:/Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/osgeo4w/apps/qgis/./python/plugins
C:\osgeo4w\apps\grass\grass83\etc\python
C:\WINDOWS\system32
C:\osgeo4w\bin\python39.zip
C:\osgeo4w\apps\Python39\DLLs
C:\osgeo4w\apps\Python39\lib
C:\osgeo4w\bin
C:\osgeo4w\apps\Python39
C:\osgeo4w\apps\Python39\lib\site-packages
C:\osgeo4w\apps\Python39\lib\site-packages\win32
C:\osgeo4w\apps\Python39\lib\site-packages\win32\lib
C:\osgeo4w\apps\Python39\lib\site-packages\Pythonwin
C:/Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users/ciesilski/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rvt-qgis
C:/Users/ciesilski/AppData/Roaming/QGIS/QGIS3/profiles/default/project_templates
[LoD2_32_608_5584_2_TH.zip](https://github.com/cityjson/cityjson-qgis-plugin/files/13266633/LoD2_32_608_5584_2_TH.zip)
Is it because of the QGIS version?
Thanks
Stefan
Je kunt:
het handmatig herstellen (zie laatste link)
een oudere versie van QGIS installeren
wachten tot de plugin gedeployed is en dan de plugin updaten in jouw QGIS-applicatie