planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

Show a better dialog when the projection needs to be set manually #100

Open vdeparday opened 10 years ago

vdeparday commented 10 years ago

When trying publish a layer to GeoServer with certain projections, I get the whole exception pasted below. Although at the end of the exception there is a note to explain, it is still a little scary for new users, could it be presented in a better formar?

Could not set projection for layer [shelter]. the layer has been created, but its projection should be set manually. Traceback (most recent call last): File "C:\Documents and Settings\ADMIN001/.qgis2/python/plugins\opengeo\gui\explorer.py", line 118, in run command(*params) File "C:\Documents and Settings\ADMIN001/.qgis2/python/plugins\opengeo\gui\confirm.py", line 18, in publishLayer catalog.publishLayer(layer, workspace, overwrite, name) File "C:\Documents and Settings\ADMIN001/.qgis2/python/plugins\opengeo\qgis\catalog.py", line 362, in publishLayer self.upload(layer, workspace, overwrite, title) File "C:\Documents and Settings\ADMIN001/.qgis2/python/plugins\opengeo\qgis\catalog.py", line 271, in upload raise Exception(msg % layer.name()) Exception: Could not set projection for layer [shelter]. the layer has been created, but its projection should be set manually.

vdeparday commented 10 years ago

We could actually suggest the user to reproject manually in 4326 or ask confirmation to go through with the upload with this projection and warn that they need to set it up manually (maybe with a link to geoserver docs)