Changeset 28031 in osm for applications/editors/josm/plugins/opendata/modules/fr.toulouse/src
- Timestamp:
- 2012-03-10T16:18:51+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/ReseauTisseoHandler.java
r28022 r28031 21 21 import org.openstreetmap.josm.data.osm.DataSet; 22 22 import org.openstreetmap.josm.data.osm.OsmPrimitive; 23 import org.openstreetmap.josm.plugins.opendata.core.io.NeptuneReader; 23 24 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; 24 25 25 26 public class ReseauTisseoHandler extends ToulouseDataSetHandler { 26 27 28 private static final URL neptuneSchemaUrl = ReseauTisseoHandler.class.getResource(TOULOUSE_NEPTUNE_XSD); 29 27 30 public ReseauTisseoHandler() { 28 31 super(14022, "network=fr_tisseo"); 32 NeptuneReader.registerSchema(neptuneSchemaUrl); 29 33 } 30 34 … … 39 43 @Override 40 44 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); 45 return acceptsFilename(file.getName()) && (file.getName().toLowerCase().endsWith(ZIP_EXT) || NeptuneReader.acceptsXmlNeptuneFile(file, neptuneSchemaUrl)); 50 46 } 51 47
Note:
See TracChangeset
for help on using the changeset viewer.