By looking at the code it seems you can just do:
InputStream in = ...
GeotiffReader reader = new GeotiffReader(in);
RenderedImage image = 
((GridCoverage2D)reader.read(null)).view(ViewType.GEOPHYSICS);

cheers,
Gabriel

> Hi,
> 
> I've got a working(ish) WCS client, now I'm wondering if it's possible to
> load a GridCoverage2D directly from the InputStream I get as a response to a
> GetCoverage request?  Just GeoTIFF would do fine for now, but I can only
> find how to load one from a file, not directly from an InputStream.
> 
> Thanks,
> 
> Jon


-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to