Hello Rangamani
Do you want to read the geotiff from disk as a file or via a get
request from the geoserver?
If the first, you may compare your code with the following:
import java.io.File;
import org.geotools.gce.geotiff.*;
import org.geotools.coverage.grid.GridCoverage2D;
public class GeoT
-
From: Simone Giannecchini [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 17, 2008 6:57 PM
To: Srikrishnan, Rangamani
Subject: Re: [Geotools-gt2-users] GeoTiff Reader error
Your valid seems to be an invalid geotiff. Most likely it is not a
geotiff at all.
Simone.
On Fri, Apr 18, 2008 a
Hi,
I am attempting to load a raster image. It is stored in tiff format.
My code follows the one in the codehaus tutorials.
try{
File tiffFile = new File(path);
GeoTiffReader rdr = new GeoTiffReader(tiffFile);
GridCoverage tiffCov = rdr.re