UMEP-dev / UMEP-processing

7 stars 9 forks source link

Error when URock attempts to rotate geometries #59

Closed bweeding closed 5 months ago

bweeding commented 6 months ago

When attempting to run URock at any wind angle other than 0, I'm receiving the error detailed in the text file attached.

I have attached the files and settings I'm using. This is with the most recent update to URock.

URock_files.zip urock_error_message.txt

Cheers Ben

j3r3m1 commented 6 months ago

Hi Ben, There is indeed a strange behavior of the URock algo for this specific case. However, the geometries you are using are polygonized but still look like raster, which wil

I suggest you to simplify the geometries by using the simplify function of the QGIS processing toolbox. Using the default Peucker algo with a tolerance of 1.5 m (slightly higher than the resolution of your initial raster I suppose), it works like a charm. We already simplify the geometries in the URock algo but the tolerance is lower than your 1 m, thus leading to almost no change. We cannot do that automatically since it might affect the results in a bad way if a user has a very small domain with small buildings.

Here is the buildings simplified: build_simplified.zip

bweeding commented 5 months ago

Success!

I used the GRASS generalise Peucker at 1.5m on buildings and vegetation and it works.

Cheers Ben