Hi,

I'm currently using the 52North Web Processing Service for raster
processing.  I've got some basic processes which take a GeoTiff as input.
 Everything used to work fine, but at some point it's broken.  I've posted
on the 52North list and they think it's a problem with GeoTools.

The WPS is getting a GeoTiff from my local Web Coverage Service (GeoServer).
 I'm using the data that ships with GeoServer (nurc:Arc_Sample).  Here is
the request (which successfully returns a GeoTiff):

http://localhost:8080/geoserver/wcs?service=WCS&version=1.0.0&request=GetCoverage&coverage=nurc:Arc_Sample&bbox=-163.4765625,-77.87109375,137.4609375,62.05078125&crs=EPSG:4326&format=geotiff&width=800&height=800

The WPS then trying to great a GridCoverage2D out of it using these lines:

reader = new GeoTiffReader(tempFile, hints);
GridCoverage2D coverage = (GridCoverage2D) reader.read(null);   //
AbstractGeoTiffParser.java line 50 (see exception)

This part fails and I get the following exception report:

<ns:ExceptionReport>
-
<ns:Exception exceptionCode="NoApplicableCode">
<ns:ExceptionText>Error occured while parsing XML</ns:ExceptionText>
</ns:Exception>
-
<ns:Exception exceptionCode="JAVA_StackTrace">
-
<ns:ExceptionText>
org.n52.wps.server.request.InputHandler.handleComplexValueReference:369
org.n52.wps.server.request.InputHandler.<init>:107
org.n52.wps.server.request.ExecuteRequest.call:515
org.n52.wps.server.request.Request.call:1
java.util.concurrent.FutureTask$Sync.innerRun:-1
java.util.concurrent.FutureTask.run:-1
java.util.concurrent.ThreadPoolExecutor$Worker.runTask:-1
java.util.concurrent.ThreadPoolExecutor$Worker.run:-1
java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
-
<ns:Exception exceptionCode="JAVA_RootCause">
<ns:ExceptionText xsi:nil="true"/>
-
<ns:ExceptionText>
org.geotools.coverage.grid.io.AbstractGridCoverage2DReader.createImageCoverage:429
org.geotools.gce.geotiff.GeoTiffReader.read:423
org.n52.wps.io.datahandler.binary.AbstractGeotiffParser.parseTiff:50
org.n52.wps.io.datahandler.binary.GeotiffParser.parse:48
org.n52.wps.server.request.InputHandler.handleComplexValueReference:366
org.n52.wps.server.request.InputHandler.<init>:107
org.n52.wps.server.request.ExecuteRequest.call:515
org.n52.wps.server.request.Request.call:1
java.util.concurrent.FutureTask$Sync.innerRun:-1
java.util.concurrent.FutureTask.run:-1
java.util.concurrent.ThreadPoolExecutor$Worker.runTask:-1
java.util.concurrent.ThreadPoolExecutor$Worker.run:-1
java.lang.Thread.run:-1
</ns:ExceptionText>
</ns:Exception>
</ns:ExceptionReport>

So, I'm wondering if this is a problem with the GeoTiff generated by
GeoServer (it seems to work ok in QGIS) or is it a problem with the GeoTools
GeoTiff reader?

I've tried using a dataset which didn't ship with GeoServer (a Landsat
GeoTiff) and it works fine.  The WPS seems to be using GeoTools 2.4.2 and
I'm using the latest GeoServer release (2.0.1 I think?).

Thanks,

Jon
------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to