Arpapiemonte / openoise-map

OpeNoise Map is a QGIS plugin to compute the noise level generated by point source or by road source at fixed receiver points and buildings
GNU General Public License v3.0
23 stars 15 forks source link

QgsSpatialIndex.insertFeature() is deprecated #7

Closed tatjabecker closed 4 years ago

tatjabecker commented 4 years ago

Hi, I tested the plugin with your test datasets. However when I want to calculate noise levels using the roads datasets the following message is shown in my log messages panel in QGIS:

WARNING warning:C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\tools\on_CreateEmissionPoints.py:58: DeprecationWarning:

         QgsSpatialIndex.insertFeature() is deprecated

         traceback: File "C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\opeNoise.py", line 164, in CalculateNoiseLevels_show
          d.exec_()
          File "C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\tools\do_CalculateNoiseLevels.py", line 778, in accept
          on_CalculateNoiseLevels.run(settings,self.progress_bars)
          File "C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\tools\on_CalculateNoiseLevels.py", line 862, in run
          receiver_feat_new_fields = calc(progress_bars,receiver_layer,source_pts_layer,source_roads_layer,settings,level_field_index,obstacles_layer,rays_writer,diff_rays_writer)
          File "C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\tools\on_CalculateNoiseLevels.py", line 310, in calc
          on_CreateEmissionPoints.run(source_roads_layer.source(),receiver_layer.source(),emission_pts_roads_layer_path,research_ray)
          File "C:/Users/AO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\opeNoise\tools\on_CreateEmissionPoints.py", line 58, in run
          receivers_spIndex.insertFeature(receivers_feat)

P.S. I am new to QGIS and Github.

tatjabecker commented 4 years ago

I gt around the issue by downgrading to QGIS version below 3.4.

Arpapiemonte commented 4 years ago

Hi tatjabecker, we tested our plugin only with the QGIS stable versions and recommended to use those versions. Thanks to try to use it!

tatjabecker commented 4 years ago

Thank you for creating this very useful model!

Where can I find more information about the model, other than the information already provided within the plugin in QGIS , on github, and on your website? And is there a way that the model takes the height of the buildings/obstacles into account when calculating noise?

Arpapiemonte commented 4 years ago

Sorry but we haven't a dedicate website. In the web you can found this article in italian language, I hope can help you: http://www.arpa.piemonte.it/arpa-comunica/events/eventi-2018/OpeNoisemap.pdf/at_download/file