Hi everybody,
I am trying to create a legend with an SLD file that uses the transformation
function Interpolate. Geoserver is able to render the objects with the
corresponding colors in the map, but when doing a GetLegendGraphic I got a
NPE, in which the lookupString becomes null.
String lookupString = lookup.evaluate(object, String.class);
Currently I am using Geoserver version 2.1.3.
Is this issue still an open problem or already solved with a newer one?
cheers Markus
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GetLegendGraphic-with-SLD-Transformation-Functions-does-not-work-tp5042941.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Tue, Mar 26, 2013 at 11:43 AM, markusin
<markus.innerebner@anonymised.com> wrote:
Hi everybody,
I am trying to create a legend with an SLD file that uses the transformation
function Interpolate. Geoserver is able to render the objects with the
corresponding colors in the map, but when doing a GetLegendGraphic I got a
NPE, in which the lookupString becomes null.
String lookupString = lookup.evaluate(object, String.class);
Currently I am using Geoserver version 2.1.3.
Is this issue still an open problem or already solved with a newer one?
No, the generation of a proper legend out of interpolate/categorize/recode
functions is still missing.
Patches welcomed 
Cheers
Andrea
--
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
-------------------------------------------------------
Hi Andrea,
I guess from the functionality it should be similar to the one in the Raster Color Map, isn't it?
cheers Markus
On Mar 26, 2013, at 12:27 PM, Andrea Aime wrote:
On Tue, Mar 26, 2013 at 11:43 AM, markusin
<markus.innerebner@anonymised.com> wrote:
Hi everybody,
I am trying to create a legend with an SLD file that uses the transformation
function Interpolate. Geoserver is able to render the objects with the
corresponding colors in the map, but when doing a GetLegendGraphic I got a
NPE, in which the lookupString becomes null.
String lookupString = lookup.evaluate(object, String.class);
Currently I am using Geoserver version 2.1.3.
Is this issue still an open problem or already solved with a newer one?
No, the generation of a proper legend out of interpolate/categorize/recode
functions is still missing.
Patches welcomed 
Cheers
Andrea
--
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
-------------------------------------------------------
On Tue, Mar 26, 2013 at 12:43 PM, Markus Innerebner
<markus.innerebner@anonymised.com> wrote:
Hi Andrea,
I guess from the functionality it should be similar to the one in the Raster Color Map, isn't it?
Yes, I guess one could reuse code from that
Cheers
Andrea
--
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
-------------------------------------------------------