It isn't clear whether or not the warnings you get are related to the exception.

There is a version of the spearfish shapefiles at http://www.geotools.org/display/GEOTOOLS/DB2DataStore which include the .prj files and should at least eliminate the warnings.

I've had a fair number of problems with creating text symbolizers although the spearfish demo has worked at times.

At 03:45 PM 11/19/2005, Harsh Jain wrote:
Hi ,
I am trying to run the demo from source. I have all the jars that come with the geotools-2.1.0.bin on my classpath. I commented out the lines specified in the tutorial, the ones referencing classes in ArcGrid package. I get the following error. Can someone help.

Thank you
harsh jain

Errors :
Nov 20, 2005 2:06:37 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:37 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Nov 20, 2005 2:06:38 AM org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNING: projection (.prj) for shapefile not available
Exception in thread "main" org.geotools.filter.IllegalFilterException: Attribute: CAT_DESC 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 org.geotools.demo.gui.SpearfishSample.main(SpearfishSample.java:108)




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to