Hi all,
I am trying to load in the Nasa blue marble layer using the tutorial http://docs.codehaus.org/display/GEOSDOC/Load+NASA+Blue+Marble+Data?focusedCommentId=74672#comment-74672
I have successfully created the TIFF
- (gdal_translate -of GTiff -projwin -180 0 -90 -90 world-topo-bathy-200408-3x86400x43200.ecw bluemarble_00.tiff)
But fail whenever I try and execute the:
Main Class: it.geosolutions.utils.imagepyramid.PyramidBuilder
Arguments:
Program Arguments: -s path/to/tiffFile.tiff -f 2 -n 4 -t "1024,1024" -w
VM Arguments: -Xmx512m
With a
Mar 16, 2007 9:21:25 AM it.geosolutions.utils.imagepyramid.PyramidBuilder exceptionOccurred
SEVERE: An error occurred during processing
java.io.IOException: Unable to instantiate a reader for this coverage (C:\Program Files\FWTools1.1.3\bin\test.jpg)
at it.geosolutions.utils.imagepyramid.PyramidBuilder.run(PyramidBuilder.java:491)
at java.lang.Thread.run(Thread.java:595)
The code executing is:
AbstractGridCoverage2DReader inReader = (AbstractGridCoverage2DReader) format
.getReader(inputLocation);
if (inReader == null) {
String message = "Unable to instantiate a reader for this coverage (" + inputLocation + ")";
fireException(message, 0, new IOException(message));
return;
}
Note that I have added some extra debug information and the Format the pyramid builder is using is
org.geotools.data.coverage.grid.UnknownFormat
When I do a gdal_translate to PNG and to JPEG I can successfully open and view the files using GIMP, and again Pyramid builder returns unknown format, and fails with the same error. I am not sure if the format type is ever known though…
My environment is Windows XP, Java 1.5 and I’m using [http://svn.geotools.org/geotools/branches/2.3.x](http://svn.geotools.org/geotools/branches/2.3.x) retrieved yesterday.
I have tried FWTools 1.2.3, 1.2.2 and 1.1.3 to see if maybe it is doing something funny to the file, but always with the same error.
I’d appreciate any help with building pyramids and am happy to try anything anyone can suggest at this point!
Many thanks,
Tim