Changeset 28088 in osm for applications
- Timestamp:
- 2012-03-15T13:59:12+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/LeMansModule.java
r28087 r28088 18 18 import org.openstreetmap.josm.plugins.opendata.core.modules.AbstractModule; 19 19 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation; 20 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CantonsSartheHandler; 20 21 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.ServicesCommunautairesMunicipauxHandler; 21 22 … … 25 26 super(info); 26 27 handlers.add(new ServicesCommunautairesMunicipauxHandler()); 28 handlers.add(new CantonsSartheHandler()); 27 29 } 28 30 } -
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/LeMansDataSetHandler.java
r28087 r28088 107 107 List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>(); 108 108 try { 109 if (csvUuid != null && !csvUuid.isEmpty()) result.add(new Pair<String, URL>("CSV", new URL(PORTAL + "download.do?uuid=" + csvUuid))); 109 //if (csvUuid != null && !csvUuid.isEmpty()) result.add(new Pair<String, URL>("CSV", new URL(PORTAL + "download.do?uuid=" + csvUuid))); 110 110 if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>("KMZ", new URL(PORTAL + "download.do?uuid=" + kmzUuid))); 111 111 if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<String, URL>("SHP", new URL(PORTAL + "download.do?uuid=" + shpUuid))); -
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/ServicesCommunautairesMunicipauxHandler.java
r28087 r28088 17 17 18 18 import org.openstreetmap.josm.data.osm.DataSet; 19 import org.openstreetmap.josm.data.osm.Node; 19 20 20 21 public class ServicesCommunautairesMunicipauxHandler extends LeMansDataSetHandler { … … 33 34 @Override 34 35 public void updateDataSet(DataSet ds) { 35 // TODO Auto-generated method stub 36 for (Node n : ds.getNodes()) { 37 replace(n, "NOM", "name"); 38 } 36 39 } 37 40 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java
r28050 r28088 69 69 String cdisp = this.activeConnection.getHeaderField("Content-disposition"); 70 70 if (cdisp != null) { 71 Matcher m = Pattern.compile("attachment; 71 Matcher m = Pattern.compile("attachment;.?filename=(.*)").matcher(cdisp); 72 72 if (m.matches()) { 73 73 filename = m.group(1); … … 97 97 98 98 private Class<? extends AbstractReader> findReaderByExtension(String filename) { 99 filename = filename.replace("\"", ""); 99 100 if (filename.endsWith("."+XLS_EXT)) { 100 101 return XlsReader.class;
Note:
See TracChangeset
for help on using the changeset viewer.