Opened 16 years ago

Last modified 13 years ago

#1167 assigned patch

SLD support in conjunction with WMS

Reported by: hdus Owned by: gcontreras
Priority: minor: annoyance Milestone: Version 1.7.0
Component: WMS Version: Trunk
Keywords: WMS SLD Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

It would be very helpful and very nice to have the option to define a SLD-URL in conjunction with WMS connection info.

Attachments (2)

sldpatch.patch (26.0 KB ) - added by gcontreras 15 years ago.
Patch to add sld support for wms layers
sldpatch_18_08_09.patch (75.5 KB ) - added by gcontreras 15 years ago.
Patch with python bindings updated

Download all attachments as: .zip

Change History (10)

in reply to:  description comment:1 by frdcn, 16 years ago

It would nice to have support for sld_body, this way styling for wms layers could be made directly in qgis using the style editor and eliminating the requirement to store the style file in a public visible ip address.

comment:2 by springmeyer, 15 years ago

See also: #1726

comment:3 by gcontreras, 15 years ago

Owner: changed from nobody to gcontreras
Status: newassigned

by gcontreras, 15 years ago

Attachment: sldpatch.patch added

Patch to add sld support for wms layers

comment:4 by timlinux, 15 years ago

Got this when trying to build your patch against r11177.

sipcoreQgsRasterLayer.cpp: In function ‘PyObject* meth_QgsRasterLayer_setDataProvider(PyObject*, PyObject*)’: sipcoreQgsRasterLayer.cpp:1794: error: no matching function for call to ‘QgsRasterLayer::setDataProvider(const QString&, const QStringList&, const QStringList&, const QString&, const QString&)’ /home/timlinux/dev/cpp/qgis/src/core/raster/qgsrasterlayer.h:374: note: candidates are: void QgsRasterLayer::setDataProvider(const QString&, const QStringList&, const QStringList&, const QString&, const QString&, const QString&, const QString&) make[3]: * [sipcoreQgsRasterLayer.o] Error 1 make[2]: * [python/core/core.so] Error 2 make[1]: * [python/CMakeFiles/python.dir/all] Error 2

Regards

Tim

comment:5 by gcontreras, 15 years ago

Sorry, I didn't build with python and didn't update the bindings, I will fix this and upload a new patch.

Regards Godofredo Contreras

comment:6 by lutra, 15 years ago

Milestone: Version 1.0.3Version 1.2.0
Type: enhancementpatch

by gcontreras, 15 years ago

Attachment: sldpatch_18_08_09.patch added

Patch with python bindings updated

comment:7 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:8 by pcav, 13 years ago

Any reason not to apply this to 1.8?

Note: See TracTickets for help on using tickets.