[Geoserver-users] GetLegendGraphic how is it working?!

Hi,

I would like use GetLegendGraphic request to get a nice legend, but I only get picture with 2 or 3 colored box. How can I get a real legend with colored box and text? I have to format the style file in a special way? Some of you can help me ?

Thanks a lot, bye Antonello

I believe that recent versions of geoserver (the 1.5.0-beta series) support names in their getlegendgraphics, but you have to include a <Title> element in your SLD, under each <Rule>

Here's an example:

http://64.119.128.70//geoserver/wms?VERSION=1.0.0&REQUEST=GetLegendGraphic&LAYER=massgis:GISDATA.ICERINKS_PT&STYLE=GISDATA.ICERINKS_PT::Default&FORMAT=image/png

Unfortunately the title in these SLDs is 'title'.

Oops. But it demonstrates the point!

--saul

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of Antonello
Sent: Fri 3/9/2007 11:41 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic how is it working?!

Hi,

I would like use GetLegendGraphic request to get a nice legend, but I
only get picture with 2 or 3 colored box. How can I get a real legend
with colored box and text? I have to format the style file in a special
way? Some of you can help me ?

Thanks a lot, bye Antonello

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Justin had some additional fixes for RC2 that I think will default to the layer name if there is no title? I can't remember the exact changes, but RC2 should have some better legend stuff.

Farber, Saul (ENV) wrote:

I believe that recent versions of geoserver (the 1.5.0-beta series) support names in their getlegendgraphics, but you have to include a <Title> element in your SLD, under each <Rule>

Here's an example:

http://64.119.128.70//geoserver/wms?VERSION=1.0.0&REQUEST=GetLegendGraphic&LAYER=massgis:GISDATA.ICERINKS_PT&STYLE=GISDATA.ICERINKS_PT::Default&FORMAT=image/png

Unfortunately the title in these SLDs is 'title'.

Oops. But it demonstrates the point!

--saul

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of Antonello
Sent: Fri 3/9/2007 11:41 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic how is it working?!
Hi,

I would like use GetLegendGraphic request to get a nice legend, but I only get picture with 2 or 3 colored box. How can I get a real legend with colored box and text? I have to format the style file in a special way? Some of you can help me ?

Thanks a lot, bye Antonello

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45f1954a318849771116852!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Thank you for the help,

my geoserver still doesn't show the title tag, but I think I have to update it.

Thx anyway, just after update it I will try again and I will give u a feedback.

Bye bye, Antonello

Chris Holmes wrote:

Justin had some additional fixes for RC2 that I think will default to the layer name if there is no title? I can't remember the exact changes, but RC2 should have some better legend stuff.

Farber, Saul (ENV) wrote:

I believe that recent versions of geoserver (the 1.5.0-beta series) support names in their getlegendgraphics, but you have to include a <Title> element in your SLD, under each <Rule>

Here's an example:

http://64.119.128.70//geoserver/wms?VERSION=1.0.0&REQUEST=GetLegendGraphic&LAYER=massgis:GISDATA.ICERINKS_PT&STYLE=GISDATA.ICERINKS_PT::Default&FORMAT=image/png

Unfortunately the title in these SLDs is 'title'.

Oops. But it demonstrates the point!

--saul

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of Antonello
Sent: Fri 3/9/2007 11:41 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic how is it working?!
Hi,

I would like use GetLegendGraphic request to get a nice legend, but I only get picture with 2 or 3 colored box. How can I get a real legend with colored box and text? I have to format the style file in a special way? Some of you can help me ?

Thanks a lot, bye Antonello

-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45f1954a318849771116852!

Yup, the rule name will be use if no rule title is available.

-Justin

Chris Holmes wrote:

Justin had some additional fixes for RC2 that I think will default to
the layer name if there is no title? I can't remember the exact
changes, but RC2 should have some better legend stuff.

Farber, Saul (ENV) wrote:

I believe that recent versions of geoserver (the 1.5.0-beta series)
support names in their getlegendgraphics, but you have to include a
<Title> element in your SLD, under each <Rule>

Here's an example:

http://64.119.128.70//geoserver/wms?VERSION=1.0.0&REQUEST=GetLegendGraphic&LAYER=massgis:GISDATA.ICERINKS_PT&STYLE=GISDATA.ICERINKS_PT::Default&FORMAT=image/png

Unfortunately the title in these SLDs is 'title'.

Oops. But it demonstrates the point!

--saul

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of
Antonello
Sent: Fri 3/9/2007 11:41 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic how is it working?!

Hi,

I would like use GetLegendGraphic request to get a nice legend, but I
only get picture with 2 or 3 colored box. How can I get a real legend
with colored box and text? I have to format the style file in a
special way? Some of you can help me ?

Thanks a lot, bye Antonello

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1004,45f19a73323207731818748!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1004,45f19a73323207731818748!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

As quoted from "Farber, Saul (ENV)" <Saul.Farber@anonymised.com>:

I believe that recent versions of geoserver (the 1.5.0-beta series)
support names in their getlegendgraphics, but you have to include a
<Title> element in your SLD, under each <Rule>

Does this support I18N, i.e. can I ask for legends in different languages?
E.g. by specifying in my SLD:
  <Title xml:lang="en">Sea</Title>
  <Title xml:lang="fr">Mer</Title>
  <Title xml:lang="de">Meer</Title>
  <Title xml:lang="nl">Zee</Title>
and then asking for a specific language?

--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600

No. It pulls the strings directly from the SLD document directly and
does not i18n them. So what you see is what you get. I wonder if the SLD
spec mentions anything about i18n.

Gertjan van Oosten wrote:

As quoted from "Farber, Saul (ENV)" <Saul.Farber@anonymised.com>:

I believe that recent versions of geoserver (the 1.5.0-beta series)
support names in their getlegendgraphics, but you have to include a
<Title> element in your SLD, under each <Rule>

Does this support I18N, i.e. can I ask for legends in different languages?
E.g. by specifying in my SLD:
  <Title xml:lang="en">Sea</Title>
  <Title xml:lang="fr">Mer</Title>
  <Title xml:lang="de">Meer</Title>
  <Title xml:lang="nl">Zee</Title>
and then asking for a specific language?

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

I think there was some recent work in OGC to better address i18n, but I don't think it's yet made it's way back to the baseline adopted specs yet.

Chris

Justin Deoliveira wrote:

No. It pulls the strings directly from the SLD document directly and
does not i18n them. So what you see is what you get. I wonder if the SLD
spec mentions anything about i18n.

Gertjan van Oosten wrote:

As quoted from "Farber, Saul (ENV)" <Saul.Farber@anonymised.com>:

I believe that recent versions of geoserver (the 1.5.0-beta series)
support names in their getlegendgraphics, but you have to include a
<Title> element in your SLD, under each <Rule>

Does this support I18N, i.e. can I ask for legends in different languages?
E.g. by specifying in my SLD:
  <Title xml:lang="en">Sea</Title>
  <Title xml:lang="fr">Mer</Title>
  <Title xml:lang="de">Meer</Title>
  <Title xml:lang="nl">Zee</Title>
and then asking for a specific language?

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org