I am trying to use ArcGISReader to read an ArcInfo ASCII Grid format
file.
My code reads as such

URL arcURL = (new File("data/chch/sw250.asc")).toURL();
ArcGridReader agr = new ArcGridReader(arcURL);
GridCoverage2D gc2 = (GridCoverage2D)agr.read(null);
RasterSymbolizer rs2 = sb.createRasterSymbolizer();
DefaultMapLayer windlayer = new DefaultMapLayer(gc2,sb.createStyle(rs2));
context.add(windlayer)

I basically get a layer that is all one color, no features.
What am I doing wrong?
How do I specify a parameter in the read method? The only one
that may apply to this case is DefaultParameterDescriptor.CRS, if
indeed I need to specify anything.

Finally I also get this warning message:
Jan 19, 2007 1:47:41 PM FactoryRegistry scanForPlugins
WARNING: Can't load a service for category "DataSource". Cause is
"NoClassDefFoundError: org/hsqldb/jdbc/jdbcDataSource".



Thanx
gaby

PS The javadocs for this class are not updated: they do not reflect the
fact that ArcGridReader no longer
has the method openArcGridRaster() and that the read method does work now.

-- 
***************************************************************
**     Gabriella Turek               [EMAIL PROTECTED]      **
** National Institute of Water & Atmospheric Research (NIWA) **
** PO Box 8602 Christchurch New Zealand +64-3-348-8987x3724  **
***************************************************************

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to