Changeset 36176 in osm for applications/editors/josm/plugins/geotools
- Timestamp:
- 2023-10-19T21:58:56+02:00 (13 months ago)
- Location:
- applications/editors/josm/plugins/geotools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geotools/build.xml
r36028 r36176 13 13 <property name="plugin.requires" value="apache-commons;ejml;jackson;jaxb;jts"/> 14 14 <property name="plugin.stage" value="20"/> 15 <property name="plugin.minimum.java.version" value="11"/> 15 16 16 17 <!-- ** include targets that all plugins have in common ** --> -
applications/editors/josm/plugins/geotools/ivy.xml
r36024 r36176 11 11 <dependency org="org.geotools" name="gt-main" rev="${gt.version}" conf="default->default"/> 12 12 <dependency org="org.geotools" name="gt-metadata" rev="${gt.version}" conf="default->default"/> 13 <dependency org="org.geotools" name="gt- opengis" rev="${gt.version}" conf="default->default"/>13 <dependency org="org.geotools" name="gt-api" rev="${gt.version}" conf="default->default"/> 14 14 <dependency org="org.geotools" name="gt-referencing" rev="${gt.version}" conf="default->default"/> 15 15 <dependency org="org.geotools" name="gt-shapefile" rev="${gt.version}" conf="default->default"/> -
applications/editors/josm/plugins/geotools/ivy_settings.xml
r36068 r36176 2 2 <ivysettings> 3 3 <!-- When geotools is updated, run `ant merge-geotools-services` --> 4 <property name="gt.version" value="28.2"/> 4 <property name="gt.version" value="30.0"/> 5 <include file="${josm.ivysettings}" optional="true" /> <!-- optional for IDEs --> 5 6 <settings defaultResolver="ordered-resolvers"/> 6 7 <resolvers> -
applications/editors/josm/plugins/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java
r36015 r36176 4 4 import java.io.IOException; 5 5 import java.io.InputStream; 6 import java.util.Collection; 6 7 import java.util.Iterator; 7 8 import java.util.ServiceLoader; … … 15 16 import org.geotools.image.ImageWorker; 16 17 import org.geotools.referencing.CRS; 17 import org. opengis.referencing.FactoryException;18 import org. opengis.referencing.NoSuchAuthorityCodeException;18 import org.geotools.api.referencing.FactoryException; 19 import org.geotools.api.referencing.NoSuchAuthorityCodeException; 19 20 import org.openstreetmap.josm.plugins.Plugin; 20 21 import org.openstreetmap.josm.plugins.PluginInformation; … … 102 103 103 104 private static void checkEPSG() { 105 final Collection<String> codes = CRS.getSupportedCodes("EPSG"); 106 if (codes.isEmpty() || !(codes.contains("4326") || codes.contains("EPSG:4326"))) { 104 107 try { 105 CRS.decode("EPSG:4326"); 106 } catch (NoSuchAuthorityCodeException e) { 107 Logging.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: "+e.getMessage()); 108 } catch (FactoryException e) { 109 Logging.error("geotools: error in EPSG database initialization. FactoryException: "+e.getMessage()); 108 CRS.decode("EPSG:4326"); 109 } catch (NoSuchAuthorityCodeException e) { 110 Logging.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: " + e.getMessage()); 111 } catch (FactoryException e) { 112 Logging.error("geotools: error in EPSG database initialization. FactoryException: " + e.getMessage()); 113 } 110 114 } 111 115 }
Note:
See TracChangeset
for help on using the changeset viewer.