planetfederal / qgis-suite-plugin

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

Adding a layer from GeoServer to QGIS workspace doesn't keep the GeoServer style #73

Open vdeparday opened 10 years ago

vdeparday commented 10 years ago

When adding a layer from GeoServer to QGIS workspace it doesn't get the default style from Geoserver. It would be good if it could keep it as some styles are defined in detailed on the server.

volaya commented 10 years ago

IT does, but only when you use the "Add to project" command. If you drag and drop, the explorer just passes the URL of the layer to QGIS, and QGIS will use it but cannot use any style. A solution might be to listen to the signal that is emmitted when a layer is added, then see if the layer correspond to one in the server, and in that case set the style on it. Other than that, the process of adding the layer is controlled by QGIS, not by the Explorer