Hello,
I am facing a small problem while migrating my application from geotools 2.0 to geotools 2.1.
I am getting exception in the following code:
TextSymbolizer tsArch = sb.createTextSymbolizer(Color.RED, font, "KIDE");
-----
Exception is as follows:
org.geotools.filter.IllegalFilterException: Attribute: KIDE is not in stated schema .
at org.geotools.filter.AttributeExpressionImpl2.setAttributePath(AttributeExpressionImpl2.java:65)
at org.geotools.styling.StyleBuilder.attributeExpression(StyleBuilder.java:1684)
at org.geotools.styling.StyleBuilder.createTextSymbolizer(StyleBuilder.java:1157)
at in.nic.lrc.gis.shared.MapService.drawFullMap(MapService.java:85)
at in.nic.lrc.gis.client.MapFrame.openCurrent(MapFrame.java:718)
at in.nic.lrc.gis.client.MapFrame.access$7(MapFrame.java:714)
at in.nic.lrc.gis.client.MapFrame$8.construct(MapFrame.java:698)
at in.nic.lrc.gis.client.SwingWorker$2.run(SwingWorker.java:96)
at java.lang.Thread.run(Thread.java:595)
The attribute is there. Output of printing schema names is this:
the_geom AREA PERIMETER A090_ A090_ID CCODE91 CCODE01 LCODE PCODE KIDE KIDZ KIDH PAR_ERR PAR_TYPE
Please help me to identify where I am wrong. It is working fine with geotools 2.0 jars. Am I missing something?
Thanks in advance.
Sunish Kumar.
I am facing a small problem while migrating my application from geotools 2.0 to geotools 2.1.
I am getting exception in the following code:
TextSymbolizer tsArch = sb.createTextSymbolizer(Color.RED, font, "KIDE");
-----
Exception is as follows:
org.geotools.filter.IllegalFilterException: Attribute: KIDE is not in stated schema .
at org.geotools.filter.AttributeExpressionImpl2.setAttributePath(AttributeExpressionImpl2.java:65)
at org.geotools.styling.StyleBuilder.attributeExpression(StyleBuilder.java:1684)
at org.geotools.styling.StyleBuilder.createTextSymbolizer(StyleBuilder.java:1157)
at in.nic.lrc.gis.shared.MapService.drawFullMap(MapService.java:85)
at in.nic.lrc.gis.client.MapFrame.openCurrent(MapFrame.java:718)
at in.nic.lrc.gis.client.MapFrame.access$7(MapFrame.java:714)
at in.nic.lrc.gis.client.MapFrame$8.construct(MapFrame.java:698)
at in.nic.lrc.gis.client.SwingWorker$2.run(SwingWorker.java:96)
at java.lang.Thread.run(Thread.java:595)
The attribute is there. Output of printing schema names is this:
the_geom AREA PERIMETER A090_ A090_ID CCODE91 CCODE01 LCODE PCODE KIDE KIDZ KIDH PAR_ERR PAR_TYPE
Please help me to identify where I am wrong. It is working fine with geotools 2.0 jars. Am I missing something?
Thanks in advance.
Sunish Kumar.
__________________________________________________
Do
You
Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
