Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying run three filter functions(Recode,Categorize,Interpolate) described at the bottom of this page http://docs.geoserver.org/stable/en/user/filter/function_reference.html

Recode and Interpolate works fine but Categorize throws me the following exception message. 'java.lang.RuntimeException: Unable to find function Categorize'

What could cause this problem ? Am I supposed to install a plugin on geoserver or what?

The official examples are on http://docs.geoserver.org/stable/en/user/styling/sld-tipstricks/transformation-func.html

share|improve this question
    
what does the log file say? –  iant Feb 7 '13 at 8:15
    
@iant it says java.lang.RuntimeException: Unable to find function Categorize at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:104) at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:70) at org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:470) at org.geotools.filter.ExpressionDOMParser.expression(ExpressionDOMParser.java:394) at org.geotools.filter.ExpressionDOMParser.parseExpression(ExpressionDOMParser.java‌​:102) –  Red John Feb 7 '13 at 12:53

1 Answer 1

The question is old, but I had the same issue. For me the problem was the style definition, I was missing the last value for the ranges; with respect to the example in the Geoserver documentation,

     <ogc:Literal>#87CEEB</ogc:Literal>
     <ogc:Literal>20</ogc:Literal>
     <ogc:Literal>#FFFACD</ogc:Literal>
     <ogc:Literal>100</ogc:Literal>
     <ogc:Literal>#F08080</ogc:Literal>   <!-- I was misisng a line :) -->
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.