Details

      Description

      Now bmp format is not supported in uDig. Is it possible to add it ?

        Activity

        Hide
        Jody Garnett added a comment -
        Can bmp be used as a "world+image" in the same manner as jpeg and png? Do you want to try it?

        I see on this page: http://udig.refractions.net/confluence/display/EN/World+Plus+Image

        Looking at the geotools source code I see:

        // bmp
        tempSet = new HashSet<String>(2);
        tempSet.add(".bmw");
        tempSet.add(".bmpw");
        BMP_WFILE_EXT = Collections.unmodifiableSet(tempSet);

        So I would expect bmp to be supported as it stands?
        Show
        Jody Garnett added a comment - Can bmp be used as a "world+image" in the same manner as jpeg and png? Do you want to try it? I see on this page: http://udig.refractions.net/confluence/display/EN/World+Plus+Image Looking at the geotools source code I see: // bmp tempSet = new HashSet<String>(2); tempSet.add(".bmw"); tempSet.add(".bmpw"); BMP_WFILE_EXT = Collections.unmodifiableSet(tempSet); So I would expect bmp to be supported as it stands?
        Hide
        Siarhei Khamenka added a comment -
        As coded in WorldImageServiceExtension.reasonForFailure( URL id ):
                if(fileExt.compareToIgnoreCase("PNG") != 0 && //$NON-NLS-1$
                        fileExt.compareToIgnoreCase("GIF") != 0 && //$NON-NLS-1$
                        fileExt.compareToIgnoreCase("JPG") != 0 && //$NON-NLS-1$
                        fileExt.compareToIgnoreCase("JPEG") != 0 && //&& //$NON-NLS-1$
                        fileExt.compareToIgnoreCase("TIF") != 0 && //$NON-NLS-1$
                        fileExt.compareToIgnoreCase("TIFF") != 0) { //$NON-NLS-1$
                   return Messages.WorldImageServiceExtension_badFileExtension+fileExt;
                }
        *.bmp can't be processed by WorldImageService. Also it's necessary to add it as available file extension for open dialog on FileConnectionPage.
        Show
        Siarhei Khamenka added a comment - As coded in WorldImageServiceExtension.reasonForFailure( URL id ):         if(fileExt.compareToIgnoreCase("PNG") != 0 && //$NON-NLS-1$                 fileExt.compareToIgnoreCase("GIF") != 0 && //$NON-NLS-1$                 fileExt.compareToIgnoreCase("JPG") != 0 && //$NON-NLS-1$                 fileExt.compareToIgnoreCase("JPEG") != 0 && //&& //$NON-NLS-1$                 fileExt.compareToIgnoreCase("TIF") != 0 && //$NON-NLS-1$                 fileExt.compareToIgnoreCase("TIFF") != 0) { //$NON-NLS-1$            return Messages.WorldImageServiceExtension_badFileExtension+fileExt;         } *.bmp can't be processed by WorldImageService. Also it's necessary to add it as available file extension for open dialog on FileConnectionPage.
        Hide
        Jody Garnett added a comment -
        Got the fix in; will appear in 1.2.1
        Show
        Jody Garnett added a comment - Got the fix in; will appear in 1.2.1

          People

          • Assignee:
            Unassigned
            Reporter:
            Siarhei Khamenka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: