Changeset 33680 in osm for applications/editors/josm/plugins/cadastre-fr/src
- Timestamp:
- 2017-09-29T20:13:22+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java
r33658 r33680 48 48 import org.openstreetmap.josm.plugins.fr.cadastre.actions.mapmode.WMSAdjustAction; 49 49 import org.openstreetmap.josm.plugins.fr.cadastre.actions.upload.CheckSourceUploadHook; 50 import org.openstreetmap.josm.plugins.fr.cadastre.download.CadastreDownloadTask; 50 51 import org.openstreetmap.josm.plugins.fr.cadastre.edigeo.pci.EdigeoPciImporter; 51 52 import org.openstreetmap.josm.plugins.fr.cadastre.preferences.CadastrePreferenceSetting; … … 229 230 registerSessionLayerExporter(WMSLayer.class, CadastreSessionExporter.class); 230 231 registerSessionLayerImporter("cadastre-fr", CadastreSessionImporter.class); 232 233 MainApplication.getMenu().openLocation.addDownloadTaskClass(CadastreDownloadTask.class); 234 //DownloadDialog.addDownloadSource(new CadastreDownloadSource()); 231 235 } 232 236 -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/pci/EdigeoPciImporter.java
r33671 r33680 13 13 import org.openstreetmap.josm.data.osm.DataSet; 14 14 import org.openstreetmap.josm.gui.io.importexport.OsmImporter; 15 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 15 16 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 17 import org.openstreetmap.josm.io.CachedFile; 16 18 import org.openstreetmap.josm.io.IllegalDataException; 17 19 import org.openstreetmap.josm.tools.Logging; … … 55 57 } 56 58 } 59 60 /** 61 * Import data from an URL. 62 * @param source source URL 63 * @return imported data set 64 * @throws IOException if any I/O error occurs 65 * @throws IllegalDataException if an error was found while parsing the data 66 */ 67 public DataSet parseDataSet(final String source) throws IOException, IllegalDataException { 68 try (CachedFile cf = new CachedFile(source)) { 69 this.file = cf.getFile(); 70 return parseDataSet(cf.getInputStream(), NullProgressMonitor.INSTANCE); 71 } 72 } 57 73 }
Note:
See TracChangeset
for help on using the changeset viewer.