Changeset 33958 in osm for applications/editors/josm


Ignore:
Timestamp:
2017-12-21T16:43:46+01:00 (7 years ago)
Author:
donvip
Message:

fix #josm15683 - fix initialization of JAI/JAI-EXT (patch by george-hopkins)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java

    r33610 r33958  
    1212import javax.media.jai.OperationRegistry;
    1313
     14import org.geotools.image.ImageWorker;
    1415import org.geotools.referencing.CRS;
    1516import org.opengis.referencing.FactoryException;
     
    4142        // See https://www.java.net/node/666373
    4243        System.setProperty("com.sun.media.jai.disableMediaLib", "true");
     44
     45        // As JAI-Ext will replace the operation registry, it needs to be loaded before we modify it later on
     46        if (ImageWorker.isJaiExtEnabled()) {
     47            Logging.debug("geotools: load JAI-Ext operations");
     48        }
    4349
    4450        // As the JAI jars are bundled in the geotools plugin, JAI initialization does not work,
Note: See TracChangeset for help on using the changeset viewer.