Gabriella Turek ha scritto:
> 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?

You're not providing a set of rules to map from values into color
in the raster symbolizer, I think that's the cause.
Cheers
Andrea

-------------------------------------------------------------------------
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