jawensi / DEMto3D-QGIS-Plugin

Extensión GIS para impresión 3D de MDE
http://demto3d.com/
52 stars 23 forks source link

UnboundLocalError: 'projected' referenced before assignment #9

Closed Tele-Pet closed 5 years ago

Tele-Pet commented 8 years ago

I'm getting the following error:

An error has occured while executing Python code: 

UnboundLocalError: local variable 'projected' referenced before assignment 
Traceback (most recent call last):
  File "/Users/mbp/.qgis2/python/plugins/DEMto3D/DEMto3D_Dialog/DEMto3D_dialog.py", line 130, in do_export
    parameters = self.get_parameters()
  File "/Users/mbp/.qgis2/python/plugins/DEMto3D/DEMto3D_Dialog/DEMto3D_dialog.py", line 500, in get_parameters
    "z_inv": z_inv, "z_base": z_base, "projected": projected, "crs_layer": self.layer.crs(),
UnboundLocalError: local variable 'projected' referenced before assignment
jawensi commented 8 years ago

Hello which map units are using?? I think the problem is that DEMto3D only works with data in meters and degrees

Tele-Pet commented 8 years ago

I believe you are right. My data has been in feet. Once I reprojected to a CRS in either degrees or meters, and then the set the project to the CRS of given layer, it was able to output an .stl file. Thanks for following up!

Also, perhaps I overlooked it, but I don't think I see mention of the degrees/meters requirement in the plugin's details over at the QGIS plugin page. Perhaps it'd be helpful to highlight that requirement somewhere?

Thanks again, and looking forward to exploring this plugin further...