Hi Jody,
sure. Thank your for your effort.

Sincerely,
Julian

Am Fri, 26 Dec 2008 14:05:33 -0800 (PST)
schrieb "Jody Garnett (via Nabble)" <[email protected]>:

> 
> 
> 
> Can you give me a test case that shows the problem and I will fix it for 
> you :-)
> Jody
> 
> julian.hagenauer wrote:
> > Hi,
> > i downloaded trunk from svn today and comiled it.
> > The Problem does still insist for me:
> > java.lang.RuntimeException: Parsing failed for TextSymbolizer:
> > java.lang.ClassCastException: org.geotools.filter.LiteralExpressionImpl
> > cannot be cast to org.geotools.styling.LabelPlacement
> >     at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158)
> >     at
> > org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:215)
> >     at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:174)
> >     at
> > org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:222)
> >     at 
> > org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:582)
> >     at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> > Source)
> >
> > Without the LapelPlacement-Tag it works like a charm.
> >
> > Sincerely,
> > Julian
> >
> >
> > I created a test case and confirmed this problem does not exist on 
> > trunk. I can back port the test case to 2.5.x but beyond that we may be 
> > stuck; no developers are working on versions prior to 2.5.x...
> >
> > Jody
> >
> >   
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 
> ______________________________________
> 
> This email is a reply to your post @ 
> http://n2.nabble.com/LinePlacement-of-Text-does-not-work--tp1943083p1943087.html
> You can reply by email or by visting the link above.
> 

import java.io.InputStream;

import org.geotools.sld.SLDConfiguration;
import org.geotools.styling.StyledLayerDescriptor;
import org.geotools.xml.Configuration;
import org.geotools.xml.Parser;

public class TextPlacementTest {

        public static void main(String args[]) {
                try {
                        Configuration configuration = new SLDConfiguration();
                        Parser parser = new Parser(configuration);
                        InputStream xml = 
TextPlacementTest.class.getResourceAsStream("default_line.sld");
                        StyledLayerDescriptor sld = 
(StyledLayerDescriptor)parser.parse(xml);
                } catch (Exception e) {
                        e.printStackTrace();
                }

        }
}

 
-- 
View this message in context: 
http://n2.nabble.com/LinePlacement-of-Text-does-not-work--tp1943083p2113648.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to