Revision: 6444
          http://sourceforge.net/p/jump-pilot/code/6444
Author:   edso
Date:     2020-09-12 09:57:10 +0000 (Sat, 12 Sep 2020)
Log Message:
-----------
some cleanup

Modified Paths:
--------------
    
core/trunk/src/com/vividsolutions/jump/workbench/imagery/geotiff/GeoReferencedRaster.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/imagery/geotiff/GeoReferencedRaster.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/workbench/imagery/geotiff/GeoReferencedRaster.java
   2020-09-12 09:09:22 UTC (rev 6443)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/imagery/geotiff/GeoReferencedRaster.java
   2020-09-12 09:57:10 UTC (rev 6444)
@@ -79,16 +79,7 @@
    */
   protected void fetchRaster() throws Exception {
     URI uri = new URI(imageFileLocation);
-    // JAI loading streams is slower than fileload, hence we check if we really
-    // try to open a compressed file first
-//    if (CompressedFile.isArchive(uri) || CompressedFile.isCompressed(uri)) {
-//      InputStream is = CompressedFile.openFile(uri);
-//      if (!(is instanceof SeekableStream))
-//        is = SeekableStream.wrapInputStream(is, true);
-//      src = JAI.create("stream", is);
-//    } else {
-//      src = JAI.create("fileload", uri.getPath());
-//    }
+
     createJAIRenderedOP(uri);
   }
     
@@ -117,7 +108,10 @@
             true);
         decs = ImageCodec.getDecoderNames((SeekableStream) is2);
         FileUtil.close(is2);
-        System.out.println(Arrays.toString(decs));
+        //System.out.println(Arrays.toString(decs));
+        
+        // JAI loading streams is slower than fileload, hence we check if we 
really
+        // try to open a compressed file first
         if (CompressedFile.isArchive(uri) || CompressedFile.isCompressed(uri)) 
{
           InputStream input = CompressedFile.openFile(uri);
           if (!(input instanceof SeekableStream))



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to