Changeset 31751 in osm
- Timestamp:
- 2015-11-16T01:24:39+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r31746 r31751 48 48 static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/log4j.properties/"; 49 49 50 51 50 public Properties getPluginProps() { 52 51 return pluginProps; 53 52 } 54 53 55 56 54 /** 57 55 * constructor … … 62 60 super(info); 63 61 64 // switch to x=lon and y=lat for EPSG:4326 as JOSM does65 // (formally incorrect, but reasonable)66 System.setProperty("org.geotools.referencing.forceXY", "true");67 68 62 try { 69 70 63 // First create custom ClassLoader to load resources from the main JAR 71 64 pluginClassLoader = createPluginClassLoader(); -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/PluginOperations.java
r31746 r31751 73 73 CoordinateReferenceSystem targetCrs) throws NoSuchAuthorityCodeException, FactoryException { 74 74 75 // TODO: add category for NO_DATA values in coverage (transparency in 76 // image) 75 // TODO: add category for NO_DATA values in coverage (transparency in image) 77 76 78 77 GridCoverage2D destination = null; … … 112 111 113 112 /*------- switch for file type -----------*/ 114 if (extension.equalsIgnoreCase(".tif") 115 || extension.equalsIgnoreCase(".tiff")) 113 if (extension.equalsIgnoreCase(".tif") || extension.equalsIgnoreCase(".tiff")) 116 114 { 117 115
Note:
See TracChangeset
for help on using the changeset viewer.