Changeset 28022 in osm for applications/editors/josm/plugins/opendata/modules/fr.toulouse
- Timestamp:
- 2012-03-09T22:06:09+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseConstants.java
r28018 r28022 21 21 22 22 /** 23 * Source 23 * Sources 24 24 */ 25 public static final String SOURCE = "GrandToulouse"; 25 public static final String SOURCE_GRAND_TOULOUSE = "GrandToulouse"; 26 public static final String SOURCE_TISSEO = "Tisséo SMTC"; 26 27 27 28 /** -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseModule.java
r28018 r28022 47 47 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport.PistesCyclablesHandler; 48 48 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport.ReseauTisseoHandler; 49 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport.TisseoHandler;50 49 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport.TramwayStationHandler; 51 50 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport.VeloToulouseHandler; … … 96 95 handlers.add(new EquipementCulturelBalmaHandler()); 97 96 handlers.add(new InstallationSportiveBalmaHandler()); 98 handlers.add(new TisseoHandler());99 97 } 100 98 } -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/ToulouseDataSetHandler.java
r28000 r28022 54 54 @Override 55 55 public String getSource() { 56 return SOURCE ;56 return SOURCE_GRAND_TOULOUSE; 57 57 } 58 58 … … 85 85 86 86 /* (non-Javadoc) 87 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getLicenseURL() 88 */ 89 @Override 90 public URL getLicenseURL() { 91 try { 92 return new URL(getLocalPortalURL().toString()+"/license"); 93 } catch (MalformedURLException e) { 94 e.printStackTrace(); 95 } 96 return null; 97 } 98 99 /* (non-Javadoc) 87 100 * @see org.openstreetmap.josm.plugins.fr.opendata.datasets.AbstractDataSetHandler#getWikiURL() 88 101 */ -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/ReseauTisseoHandler.java
r28000 r28022 16 16 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport; 17 17 18 import java.io.File; 19 import java.net.URL; 20 18 21 import org.openstreetmap.josm.data.osm.DataSet; 22 import org.openstreetmap.josm.data.osm.OsmPrimitive; 19 23 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; 20 24 … … 27 31 @Override 28 32 public boolean acceptsFilename(String filename) { 29 return acceptsZipFilename(filename, "14022-reseau-tisseo-metro-bus-tram-"); 33 return acceptsZipFilename(filename, "14022-reseau-tisseo-metro-bus-tram-") || filename.toLowerCase().endsWith(XML_EXT); 34 } 35 36 /* (non-Javadoc) 37 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#acceptsFile(java.io.File) 38 */ 39 @Override 40 public boolean acceptsFile(File file) { 41 return acceptsFilename(file.getName()) && (file.getName().toLowerCase().endsWith(ZIP_EXT) || acceptsXmlNeptuneFile(file)); 42 } 43 44 /* (non-Javadoc) 45 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.fr.FrenchDataSetHandler#getNeptuneSchema() 46 */ 47 @Override 48 protected URL getNeptuneSchema() { 49 return ReseauTisseoHandler.class.getResource(TOULOUSE_NEPTUNE_XSD); 50 } 51 52 /* (non-Javadoc) 53 * @see org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler#getSource() 54 */ 55 @Override 56 public String getSource() { 57 return SOURCE_TISSEO; 30 58 } 31 59 32 60 @Override 33 61 public void updateDataSet(DataSet ds) { 34 // TODO Auto-generated method stub 35 62 for (OsmPrimitive p : ds.allPrimitives()) { 63 p.put("operator", "Tisséo"); 64 p.put("network", "fr_tisseo"); 65 } 36 66 } 37 67 }
Note:
See TracChangeset
for help on using the changeset viewer.