diff --git a/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java b/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java
index 000756d..e714627 100644
|
a
|
b
|
import javax.imageio.spi.IIOServiceProvider;
|
| 11 | 11 | import javax.media.jai.JAI; |
| 12 | 12 | import javax.media.jai.OperationRegistry; |
| 13 | 13 | |
| | 14 | import org.geotools.image.ImageWorker; |
| 14 | 15 | import org.geotools.referencing.CRS; |
| 15 | 16 | import org.opengis.referencing.FactoryException; |
| 16 | 17 | import org.opengis.referencing.NoSuchAuthorityCodeException; |
| … |
… |
public class GeoToolsPlugin extends Plugin {
|
| 41 | 42 | // See https://www.java.net/node/666373 |
| 42 | 43 | System.setProperty("com.sun.media.jai.disableMediaLib", "true"); |
| 43 | 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 | } |
| | 49 | |
| 44 | 50 | // As the JAI jars are bundled in the geotools plugin, JAI initialization does not work, |
| 45 | 51 | // so we need to perform the tasks described here ("Initialization and automatic loading of registry objects"): |
| 46 | 52 | // http://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/OperationRegistry.html |