[udig-devel] Send SLDs to a WMS

Joe Dente jdente at 21technologies.com
Fri Apr 25 08:22:56 PDT 2008


Thanks for the responses.

I have SLDs that are available in a web folder, so I simply need to hook
them in as a vender specific parameter for the GetMaps call.  I was
looking for an easy insertion point for the "SLD=http..." vender
specific parameter.  I was having trouble in that there did not appear
to be any place to set vender specific parameters on the Layer,
StyleBlackboard, or WMSServiceImpl; nothing within my client code could
effectively change the URL of the GetMap request that is created.

My solution right now is to supply my own renderer through the
net.refractions.udig.project.renderer extension point.  Within the
renderer, the GetMapRequest is created.  My renderer is identical to
BasicWMSRenderer2 except that I add in the SLD Vendor Specific
parameters on the GetMapRequest call after it is created.

While my solution works using only an extension so that I don't need to
modify udig code, it is less than ideal.  I would prefer if I could add
these additional parameters to the StyleBlackboard or to the Layer and
then these additional parameters would get added to the GetMapRequest
call when it is created by the renderer.  Is there a better place to
insert additional parameters?

Thanks,
Joe

-----Original Message-----
From: udig-devel-bounces at lists.refractions.net
[mailto:udig-devel-bounces at lists.refractions.net] On Behalf Of Paul
Ramsey
Sent: Thursday, April 24, 2008 3:13 PM
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Send SLDs to a WMS

Jody,

The "low rent" version of SLD styles is something I discussed with
Richard some moons ago. It is hard for two reasons:
(a) as you know, the underlying datatype information is unavailable in
the vanilla WMS API (though some (few) do expose it via DescribeLayer,
which (optionally) can return a WFS endpoint, against which you can
then DescribeFeatureType)
(b) in order to provide an SLD via a URL, the server needs to be able
to resolve the URL. In an open internet situation, uDig could act as a
HTTP server, but of course lots of people use uDig within a closed
network, into which the server cannot reach
(c) I discussed with Richard having uDig post the SLD document to a
public web scratch area, and that would work fine, however, it is
contingent on (a), which involves a number of intricate steps and only
applies to a small small percentage of WMS servers on the web
(d) however, if the user (Joe) controls his WMS server, he could
configure it to be compatible with the requirements of (a)

Paul

On Wed, Apr 23, 2008 at 5:47 PM, Jody Garnett <jgarnett at refractions.net>
wrote:
> >
> > Does udig have any support for sending the URL of an SLD as a
parameter in
> a GetMap request to a WMS? I need to generate SLDs on the client side
and
> then send them over to my WMS.
> >
> >
>  I think we can do the same thing as OpenLayers here; but we do not
have a
> facility for SLD Post which is what I want.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


More information about the udig-devel mailing list