List extensions for WorldImage
------------------------------

                 Key: GEOT-3378
                 URL: http://jira.codehaus.org/browse/GEOT-3378
             Project: GeoTools
          Issue Type: Improvement
          Components:  gc worldimage
    Affects Versions: 2.7-RC1
            Reporter: Jody Garnett


I have some code in uDig allowing people to choose an image to use. It seems 
(UDIG-1742) that I have gotten out of sync. Rather than duplicate the list of 
valid extensions I would like to make use of what is already available in 
WorldImageFormat

Can we make a single Set<String> of valid extensions?
{code}
   /** {@link Set} of supported extensions for world+image files. */
   public final static Set<String> WORLD_IMAGE_EXT;

   static {
     // world+image
     tempSet = new HashSet<String>(3);
     tempSet.add(".jpeg");
     tempSet.add(".jpg");
     tempSet.add(".png");
     tempSet.add(".gif");
     tempSet.add(".bmp");
     tempSet.add(".tif");
     tempSet.add(".tiff");
     WORLD_IMAGE_EXT = Collections.unmodifiableSet(tempSet);
   }
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to