Hi Valerio,

Just looking at that example now.  Yikes - who wrote this crap ?  Oh, me...

It needs some major rewriting.  Or on second thoughts, I vote to
definitely remove it from the "stable" docs (because it is preaching
bad practice) and possibly add a rewritten version to the "latest"
docs where it could be used to illustrate the Env and Categorize
functions as well as linking to the advanced FilterFactory tutorial.

Jody: what do you think ?

Michael


On 4 August 2011 01:14, Valerio Di Gregorio
<[email protected]> wrote:
> Hi 2 all,
> I'm dealing with a (not working) example:
>
> http://docs.geotools.org/stable/userguide/examples/stylefunctionlab.html
>
> I fixed it to work without the ColorLookupFunction, then I tried to
> reintroduce it. So I experienced the following problem:
>
> 3-ago-2011 16.58.16 org.geotools.renderer.lite.StreamingRenderer
> fireErrorEvent
> GRAVE: Unable to find function UniqueColour
> java.lang.RuntimeException: Unable to find function UniqueColour
>     at
> org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:103)
>     at
> org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:69)
>     at
> org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:469)
>     at
> org.geotools.filter.visitor.DuplicatingFilterVisitor.visit(DuplicatingFilterVisitor.java:309)
>     at
> org.geotools.filter.FunctionExpressionImpl.accept(FunctionExpressionImpl.java:147)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.copy(DuplicatingStyleVisitor.java:351)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.visit(DuplicatingStyleVisitor.java:616)
>     at org.geotools.styling.StrokeImpl.accept(StrokeImpl.java:401)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.copy(DuplicatingStyleVisitor.java:417)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.visit(DuplicatingStyleVisitor.java:674)
>     at
> org.geotools.styling.visitor.UomRescaleStyleVisitor.visit(UomRescaleStyleVisitor.java:190)
>     at
> org.geotools.styling.LineSymbolizerImpl.accept(LineSymbolizerImpl.java:95)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.copy(DuplicatingStyleVisitor.java:468)
>     at
> org.geotools.styling.visitor.DuplicatingStyleVisitor.visit(DuplicatingStyleVisitor.java:275)
>     at
> org.geotools.renderer.lite.StreamingRenderer.rescaleFeatureTypeStyle(StreamingRenderer.java:1971)
>     at
> org.geotools.renderer.lite.StreamingRenderer.applyUnitRescale(StreamingRenderer.java:1949)
>     at
> org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1899)
>     at
> org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:766)
>     at
> org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:159)
>     at
> org.geotools.swing.RenderingExecutor$Task.call(RenderingExecutor.java:114)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutorjava:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:662)
>
> I found the following solution:
>
> http://osgeo-org.1803224.n2.nabble.com/Unable-to-find-function-when-parsing-OCG-Filter-td2351982.html
>
> But I don't know how to apply it and make my project works. I'm using:
>
> Eclipse 3.7 (Indigo)
> M2Eclipse plugin
> GeoTools v2.7.1
>
> Any suggestions?
>
> Thanks,
> Valerio
>
>
> LEGAL DISCLAIMER:
> The contents of this email and any transmitted files are confidential and 
> intended solely for the use of the individual or entity to whom they are 
> addressed. We hereby exclude any warranty and any liability as to the quality 
> or accuracy of the contents of this email and any attached transmitted files. 
> If you are not the intended recipient, be advised that you have received this 
> email in error and that any use, dissemination, forwarding, printing or 
> copying of this email is strictly prohibited. If you have received this email 
> in error please contact the sender and delete the material from any computer.
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to