Author: groldan
Date: 2009-11-05 13:08:08 -0500 (Thu, 05 Nov 2009)
New Revision: 34337
Modified:
trunk/modules/plugin/arcsde/datastore/src/main/java/org/geotools/arcsde/raster/gce/ArcSDEGridCoverage2DReaderJAI.java
Log:
may the image intersect one but not the other dimension of the raster?
Modified: trunk/modules/plugin/arcsde/datastore/src/main/java/org/geotools/arcsde/raster/gce/ArcSDEGridCoverage2DReaderJAI.java
===================================================================
--- trunk/modules/plugin/arcsde/datastore/src/main/java/org/geotools/arcsde/raster/gce/ArcSDEGridCoverage2DReaderJAI.java 2009-11-05 17:48:36 UTC (rev 34336)
+++ trunk/modules/plugin/arcsde/datastore/src/main/java/org/geotools/arcsde/raster/gce/ArcSDEGridCoverage2DReaderJAI.java 2009-11-05 18:08:08 UTC (rev 34337)
@@ -226,6 +226,11 @@
final Rectangle mosaicGeometry;
mosaicGeometry = RasterUtils.setMosaicLocations(rasterInfo, resultEnvelope, queries);
+ if (mosaicGeometry.width == 0 || mosaicGeometry.height == 0) {
+ LOGGER.finer("Mosaic geometry width or height is zero,"
+ + " returning fake coverage for pixels " + mosaicGeometry);
+ return createFakeCoverage(requestedEnvelope, requestedDim);
+ }
/*
* Gather the rendered images for each of the rasters that match the requested envelope
*/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
GeoTools-commits mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-commits