[Geoserver-users] Static GetLegendGraphic

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it possible with GeoServer to have a static LegendGraphic (an
external .png/.jpg-File)? I only found that GeoServer renders its own
legend with the SLD styles.

Thanks,

Björn

- --
Dipl.-Inf. Björn Höfling
Software Developer (GIS, Java)
http://www.bjoernhoefling.de/
USt-IdNr: DE275885245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlEYqycACgkQvyhstlk+X/1gxACfYAEk7R8McEQL0ER9rn23tXPW
ppYAmQFSpKpitQS3fNvRPDbGcjW4vy7A
=tcj8
-----END PGP SIGNATURE-----

Björn,
no, the legend is dynamically generated from the layer associated style.
Cheers,
Carlo

2013/2/11 Björn Höfling <bjoern.hoefling@anonymised.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it possible with GeoServer to have a static LegendGraphic (an
external .png/.jpg-File)? I only found that GeoServer renders its own
legend with the SLD styles.

Thanks,

Björn


Dipl.-Inf. Björn Höfling
Software Developer (GIS, Java)
http://www.bjoernhoefling.de/
USt-IdNr: DE275885245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlEYqycACgkQvyhstlk+X/1gxACfYAEk7R8McEQL0ER9rn23tXPW
ppYAmQFSpKpitQS3fNvRPDbGcjW4vy7A
=tcj8
-----END PGP SIGNATURE-----


Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb


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

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Björn,

You can use an external image using . If that’s what you were asking.

<OnlineResource xlink:type=“simple”

xlink:href=“file:///var/www/htdocs/sun.png” />

image.png

Regards,
Manish Barapatre

From: carlo cancellieri [mailto:carlo.cancellieri@anonymised.com]
Sent: 11 February 2013 09:34
To: Björn Höfling
Cc: geoserver-users@anonymised.com.net
Subject: Re: [Geoserver-users] Static GetLegendGraphic

Björn,

no, the legend is dynamically generated from the layer associated style.

Cheers,

Carlo

2013/2/11 Björn Höfling <bjoern.hoefling@anonymised.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it possible with GeoServer to have a static LegendGraphic (an
external .png/.jpg-File)? I only found that GeoServer renders its own
legend with the SLD styles.

Thanks,

Björn


Dipl.-Inf. Björn Höfling
Software Developer (GIS, Java)
http://www.bjoernhoefling.de/
USt-IdNr: DE275885245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlEYqycACgkQvyhstlk+X/1gxACfYAEk7R8McEQL0ER9rn23tXPW
ppYAmQFSpKpitQS3fNvRPDbGcjW4vy7A
=tcj8
-----END PGP SIGNATURE-----


Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb


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

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Mon, Feb 11, 2013 at 9:26 AM, Björn Höfling <bjoern.hoefling@anonymised.com> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it possible with GeoServer to have a static LegendGraphic (an
external .png/.jpg-File)? I only found that GeoServer renders its own
legend with the SLD styles.

Nope, at the moment you cannot. There is a pull request sitting here:
https://github.com/geoserver/geoserver/pull/63
that would add the ability to set a style wide static image to be used as
a legend.

Unfortunately the API changes were not discussed in the open, and the
patch lacks automated testing, so it cannot be applied

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/11/2013 01:04 PM, Andrea Aime wrote:

On Mon, Feb 11, 2013 at 9:26 AM, Björn Höfling
<bjoern.hoefling@anonymised.com
<mailto:bjoern.hoefling@anonymised.com>> wrote:

Is it possible with GeoServer to have a static LegendGraphic (an
external .png/.jpg-File)? I only found that GeoServer renders its
own legend with the SLD styles.

Nope, at the moment you cannot. There is a pull request sitting
here: https://github.com/geoserver/geoserver/pull/63 that would add
the ability to set a style wide static image to be used as a
legend.

Unfortunately the API changes were not discussed in the open, and
the patch lacks automated testing, so it cannot be applied

I applied the patch to master and it works. What is a bit misleading
is that the LegendGraphic URL is changed (for 1.3.0), but the
GetlegendGraphic call still returns the rendered SLD-style image. And
the image doesn't get uploaded to the server.

But I shouldn't be too critical. It's a good point to start from when
I want to update this feature. Thanks for pointing it out.

Björn

- --
Dipl.-Inf. Björn Höfling
Software Developer (GIS, Java)
http://www.bjoernhoefling.de/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlEZivUACgkQvyhstlk+X/1hLQCfUrTQxJLZjTLOlSuIXM8m4FkD
WeAAn0IulQAaSl7/AlXelIVH7UPvDkUI
=kQjB
-----END PGP SIGNATURE-----