Changeset 34019 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2018-01-16T19:59:36+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabFiles.java
r33613 r34019 14 14 import java.util.Set; 15 15 16 import org.geotools.data.DataUtilities;17 16 import org.geotools.data.shapefile.files.ShpFileType; 18 17 import org.geotools.data.shapefile.files.ShpFiles; 18 import org.geotools.util.URLs; 19 19 import org.openstreetmap.josm.tools.JosmRuntimeException; 20 20 import org.openstreetmap.josm.tools.Logging; … … 46 46 } 47 47 48 init( DataUtilities.fileToURL(headerFile));49 urls.put(ShpFileType.DBF, DataUtilities.fileToURL(dataFile));48 init(URLs.fileToUrl(headerFile)); 49 urls.put(ShpFileType.DBF, URLs.fileToUrl(dataFile)); 50 50 } 51 51 … … 54 54 */ 55 55 private static URL fakeShpFile(File headerFile) { 56 return DataUtilities.fileToURL(new File(headerFile.getAbsolutePath()+".shp"));56 return URLs.fileToUrl(new File(headerFile.getAbsolutePath()+".shp")); 57 57 } 58 58 … … 122 122 123 123 private URL findExistingFile(ShpFileType shpFileType, URL value) { 124 final File file = DataUtilities.urlToFile(value);124 final File file = URLs.urlToFile(value); 125 125 File directory = file.getParentFile(); 126 126 if (directory != null && directory.exists()) {
Note:
See TracChangeset
for help on using the changeset viewer.