i’m trying to make a getLegendGraphic request work.
I succeed in getting the image generate by geoserver, but when i want an other image shown in the legend (by defining a legendGraphic tag in the sld) this image is never found.
Is this supported and if so can somebody provide me with an example
Thanks in advance Kris (P.S. the used sld is attached)
De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:
Unfortunately I do not think that this is something that GeoServer
supports at the moment. AL though I could very well be wrong... I just
tried a simple example and it did not work.
However... I know Saul has done some funky stuff with legend graphics
before. Saul, is this possible?
K Geusebroek wrote:
Hello,
i'm trying to make a getLegendGraphic request work.
I succeed in getting the image generate by geoserver, but when i want an
other image shown in the legend (by defining a legendGraphic tag in the
sld) this image is never found.
Is this supported and if so can somebody provide me with an example
Thanks in advance Kris (P.S. the used sld is attached)
De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
This is indeed what i’m trying to do. I now solved it on the client side, but it would be better if we could let geoserver handle this.
Maybe its possible to build it into geoserver, if i could get some directions on how the getLegend request is handled by geoserver and how to change the parsing of the SLD to get the LegegendGraphic info from it, i could try to build a patch myself
Hmm, I’m not sure I completely understand what you’re trying to do here.
Are you trying to force a specific icon to be returned whenever someone
calls “getlegendgraphic” on this layer?
If so, geoserver doesn’t support this right now.
If not, can you explain what you’re hoping to achieve with this SLD?
–saul
On Fri, 2008-01-25 at 09:21 +0100, K Geusebroek wrote:
Hello,
i’m trying to make a getLegendGraphic request work.
I succeed in getting the image generate by geoserver, but when i want
an other image shown in the legend (by defining a legendGraphic tag in
the sld) this image is never found.
Is this supported and if so can somebody provide me with an example
Thanks in advance Kris (P.S. the used sld is attached)
!DSPAM:49681,479a3f7615003960017717!
De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:
Hello Saul,
This is indeed what i'm trying to do. I now solved it on the client side, but it would be better if we could let geoserver handle this.
Maybe its possible to build it into geoserver, if i could get some directions on how the getLegend request is handled by geoserver and how to change the parsing of the SLD to get the LegegendGraphic info from it, i could try to build a patch myself
Sure, that would be most appreciated.
SLD parsing occurs in the org.geotools.styling.SLDParser class located in the GeoTools project, main module.
Legend drawing occurs in the org.vfny.geoserver.wms.responses.DefaultRasterLegendProducer, located
in GeoServer wms module.
Depending on which version of GeoServer you want to fix you'll
have to checkout different branches of gt2 and geoserver.
I suggest you try to work on the GeoServer 1.6.x branch, which
depends on the GeoTools 2.4.x branch.
If you need more info just ask on the ml, or join us on the GeoServer irc channel at freenode.