Changeset 36015 in osm for applications/editors/josm/plugins/geotools/src
- Timestamp:
- 2022-08-23T20:06:58+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java
r34097 r36015 12 12 import javax.media.jai.OperationRegistry; 13 13 14 import it.geosolutions.imageio.compression.CompressionRegistry; 14 15 import org.geotools.image.ImageWorker; 15 16 import org.geotools.referencing.CRS; … … 38 39 } 39 40 40 private void initJAI() { 41 private static void initJAI() { 41 42 // Disable mediaLib searching that produces unwanted errors 42 43 // See https://www.java.net/node/666373 … … 50 51 // As the JAI jars are bundled in the geotools plugin, JAI initialization does not work, 51 52 // so we need to perform the tasks described here ("Initialization and automatic loading of registry objects"): 52 // https://docs.oracle.com/ /cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/OperationRegistry.html53 // https://docs.oracle.com/cd/E17802_01/products/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/OperationRegistry.html 53 54 OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry(); 54 55 if (registry == null) { … … 92 93 } 93 94 94 private void initGeoTools() { 95 private static void initGeoTools() { 95 96 // Force Axis order. Fix #8248 96 97 // See http://docs.geotools.org/stable/userguide/library/referencing/order.html 97 98 System.setProperty("org.geotools.referencing.forceXY", "true"); 99 // Force registration of compression. Fix #22303. 100 CompressionRegistry.getDefaultInstance().registerApplicationClasspathSpis(); 98 101 } 99 102 100 private void checkEPSG() { 103 private static void checkEPSG() { 101 104 try { 102 105 CRS.decode("EPSG:4326");
Note:
See TracChangeset
for help on using the changeset viewer.