[Schmitzm-commits] r196 - trunk/src/schmitzm/geotools/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jul 7 17:16:41 CEST 2009


Author: alfonx
Date: 2009-07-07 17:16:41 +0200 (Tue, 07 Jul 2009)
New Revision: 196

Modified:
   trunk/src/schmitzm/geotools/io/GeoImportUtil.java
Log:
* nur comments

Modified: trunk/src/schmitzm/geotools/io/GeoImportUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/io/GeoImportUtil.java	2009-07-07 13:15:33 UTC (rev 195)
+++ trunk/src/schmitzm/geotools/io/GeoImportUtil.java	2009-07-07 15:16:41 UTC (rev 196)
@@ -48,6 +48,7 @@
 import org.geotools.gce.geotiff.GeoTiffReader;
 import org.geotools.gce.image.WorldImageReader;
 import org.geotools.geometry.Envelope2D;
+import org.geotools.gui.swing.ExceptionMonitor;
 import org.geotools.referencing.CRS;
 import org.geotools.referencing.crs.DefaultGeographicCRS;
 import org.opengis.referencing.crs.CoordinateReferenceSystem;
@@ -440,7 +441,8 @@
        gc = (GridCoverage2D)reader.read(null);
        return gc;
      } catch ( UnsupportedOperationException err )  {
-       // erwartet, wenn keine Geo-Information im Tiff vorhanden ist
+    	 // erwartet, wenn keine Geo-Information im Tiff vorhanden ist
+//    	 ExceptionMonitor.show(null, err, "No geoinformation in TIFF, importing it as a normal file. Trying to read it as normal TIFF + Worldfile.");
      } catch ( NullPointerException err ) {
        // erwartet, wenn keine Geo-Information im Tiff vorhanden ist
      }



More information about the Schmitzm-commits mailing list