Ignore:
Timestamp:
2012-03-10T16:18:51+01:00 (13 years ago)
Author:
donvip
Message:

opendata: enhanced international support, fix Neptune import

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  
    2121import org.openstreetmap.josm.data.osm.DataSet;
    2222import org.openstreetmap.josm.data.osm.OsmPrimitive;
     23import org.openstreetmap.josm.plugins.opendata.core.io.NeptuneReader;
    2324import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler;
    2425
    2526public class ReseauTisseoHandler extends ToulouseDataSetHandler {
    2627
     28        private static final URL neptuneSchemaUrl = ReseauTisseoHandler.class.getResource(TOULOUSE_NEPTUNE_XSD);
     29       
    2730        public ReseauTisseoHandler() {
    2831                super(14022, "network=fr_tisseo");
     32                NeptuneReader.registerSchema(neptuneSchemaUrl);
    2933        }
    3034
     
    3943        @Override
    4044        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));
    5046        }
    5147
Note: See TracChangeset for help on using the changeset viewer.