Changeset 28142 in osm for applications/editors/josm
- Timestamp:
- 2012-03-23T21:22:46+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/DataGouvFrModule.java
r28054 r28142 24 24 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.ecologie.AssainissementHandler; 25 25 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.ecologie.ForetsPubliquesHandler; 26 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.ecologie.InventaireForestierNationalHandler; 26 27 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.ecologie.ReservesBiologiquesHandler; 27 28 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.education.Etab1er2ndDegreHandler; … … 47 48 handlers.add(new ReservesBiologiquesHandler()); 48 49 handlers.add(new EauxDeSurfaceHandler()); 50 handlers.add(new InventaireForestierNationalHandler()); 49 51 } 50 52 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java
r28113 r28142 85 85 } else if (contentType.startsWith("application/octet-stream")) { 86 86 //return OdsReader.class;//FIXME, can be anything 87 } else if (contentType.startsWith("text/csv")) { 88 return CsvReader.class; 87 89 } else if (contentType.startsWith("text/plain")) {//TODO: extract charset 88 90 return CsvReader.class; … … 138 140 if (readerClass == null) { 139 141 readerClass = findReaderByExtension(url.toLowerCase()); 140 if (readerClass != null) {141 filename = url.substring(url.lastIndexOf('/'));142 }143 142 } 144 143 if (readerClass == null) { 145 144 throw new OsmTransferException("Cannot find appropriate reader !");//TODO handler job ? 145 } else if (findReaderByExtension(url.toLowerCase()) != null) { 146 filename = url.substring(url.lastIndexOf('/')+1); 146 147 } 147 148 if (readerClass.equals(ZipReader.class)) {
Note:
See TracChangeset
for help on using the changeset viewer.