Changeset 30738 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreSessionImporter.java
- Timestamp:
- 2014-10-19T01:27:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreSessionImporter.java
r30701 r30738 22 22 public class CadastreSessionImporter implements SessionLayerImporter{ 23 23 24 25 26 27 24 @Override 25 public Layer load(Element elem, ImportSupport support, 26 ProgressMonitor progressMonitor) throws IOException, 27 IllegalDataException { 28 28 String version = elem.getAttribute("version"); 29 29 if (!"0.1".equals(version)) { … … 41 41 fileStr = URLDecoder.decode(fileStr, "UTF-8"); 42 42 fileStr = fileStr.substring(fileStr.indexOf(":/")+2); 43 43 String filename = fileStr.substring(fileStr.lastIndexOf("/")+1,fileStr.length()); 44 44 String ext = (filename.lastIndexOf(".")==-1)?"":filename.substring(filename.lastIndexOf(".")+1,filename.length()); 45 45 // create layer and load cache … … 60 60 throw new RuntimeException(e); 61 61 } 62 62 } 63 63 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.