Changeset 30563 in osm for applications/editors/josm/plugins/opendata/modules
- Timestamp:
- 2014-08-05T13:53:46+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/be.bruxelles/src/org/openstreetmap/josm/plugins/opendata/modules/be/bruxelles/BruxellesConstants.java
r30340 r30563 2 2 package org.openstreetmap.josm.plugins.opendata.modules.be.bruxelles; 3 3 4 import org.openstreetmap.josm.plugins.opendata.core.OdConstants;5 4 6 public interface BruxellesConstants extends OdConstants{5 public interface BruxellesConstants { 7 6 8 7 /** -
applications/editors/josm/plugins/opendata/modules/be.datagovbe/src/org/openstreetmap/josm/plugins/opendata/modules/be/datagovbe/DataGovBeConstants.java
r30340 r30563 2 2 package org.openstreetmap.josm.plugins.opendata.modules.be.datagovbe; 3 3 4 import org.openstreetmap.josm.plugins.opendata.core.OdConstants;5 4 6 public interface DataGovBeConstants extends OdConstants{5 public interface DataGovBeConstants { 7 6 8 7 /** -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/culture/BibliothequesHandler.java
r30340 r30563 4 4 import org.openstreetmap.josm.data.osm.DataSet; 5 5 import org.openstreetmap.josm.data.osm.Node; 6 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 6 7 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.DataGouvDataSetHandler; 7 8 … … 12 13 setName("Bibliothèques municipales"); 13 14 setDownloadFileName("lieux de lecture_geoloc.txt"); 14 getCsvHandler().setCharset(ISO8859_15); 15 getCsvHandler().setCharset(OdConstants.ISO8859_15); 15 16 } 16 17 -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/education/Etab1er2ndDegreHandler.java
r30340 r30563 6 6 import org.openstreetmap.josm.data.osm.DataSet; 7 7 import org.openstreetmap.josm.data.osm.Node; 8 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 8 9 import org.openstreetmap.josm.plugins.opendata.core.io.tabular.DefaultCsvHandler; 9 10 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.DataGouvDataSetHandler; … … 14 15 15 16 public EtabCsvHandler() { 16 setCharset(ISO8859_15); 17 setCharset(OdConstants.ISO8859_15); 17 18 setHandlesProjection(true); 18 19 } -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/transport/PassageNiveauHandler.java
r30340 r30563 4 4 import org.openstreetmap.josm.data.osm.DataSet; 5 5 import org.openstreetmap.josm.data.osm.Node; 6 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 6 7 import org.openstreetmap.josm.plugins.opendata.modules.fr.datagouvfr.datasets.DataGouvDataSetHandler; 7 8 … … 12 13 setName("Passages à niveau"); 13 14 setDownloadFileName("passage_a_niveau.csv"); 14 getCsvHandler().setCharset(ISO8859_15); 15 getCsvHandler().setCharset(OdConstants.ISO8859_15); 15 16 } 16 17 -
applications/editors/josm/plugins/opendata/modules/fr.paris/src/org/openstreetmap/josm/plugins/opendata/modules/fr/paris/ParisConstants.java
r30340 r30563 2 2 package org.openstreetmap.josm.plugins.opendata.modules.fr.paris; 3 3 4 import org.openstreetmap.josm.plugins.opendata.core.OdConstants;5 4 6 public interface ParisConstants extends OdConstants{5 public interface ParisConstants { 7 6 8 7 /** -
applications/editors/josm/plugins/opendata/modules/fr.paris/src/org/openstreetmap/josm/plugins/opendata/modules/fr/paris/datasets/ParisShpHandler.java
r30340 r30563 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 15 import org.openstreetmap.josm.data.osm.Way; 16 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 16 17 import org.openstreetmap.josm.plugins.opendata.core.datasets.fr.FrenchShpHandler; 17 18 18 19 public class ParisShpHandler extends FrenchShpHandler { 19 20 20 public final Map<String, Node> nodeMap = new HashMap< String, Node>();21 public final Map<String, Node> nodeMap = new HashMap<>(); 21 22 22 23 protected OsmPrimitive dataPrimitive; … … 26 27 27 28 public ParisShpHandler() { 28 setDbfCharset(Charset.forName(CP850)); 29 setDbfCharset(Charset.forName(OdConstants.CP850)); 29 30 } 30 31 … … 55 56 dataPrimitive = null; 56 57 closedWay = null; 57 ways = new ArrayList< Way>();58 nodes = new ArrayList< Node>();58 ways = new ArrayList<>(); 59 nodes = new ArrayList<>(); 59 60 for (OsmPrimitive p : featurePrimitives) { 60 61 if (p.hasKeys()) { -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/ChantiersPonctuelsHandler.java
r30340 r30563 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.transport; 3 4 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 3 5 4 6 public class ChantiersPonctuelsHandler extends ChantiersHandler { … … 6 8 public ChantiersPonctuelsHandler() { 7 9 super(14071, "Chantiers en cours (ponctuel)"); 8 getCsvHandler().setCharset(ISO8859_15); 10 getCsvHandler().setCharset(OdConstants.ISO8859_15); 9 11 } 10 12 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/ReseauTisseoHandler.java
r30340 r30563 8 8 import org.openstreetmap.josm.data.osm.DataSet; 9 9 import org.openstreetmap.josm.data.osm.OsmPrimitive; 10 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 10 11 import org.openstreetmap.josm.plugins.opendata.core.io.NeptuneReader; 11 12 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; … … 25 26 @Override 26 27 public boolean acceptsFilename(String filename) { 27 return acceptsZipFilename(filename, "14022-reseau-tisseo-metro-bus-tram-") || filename.toLowerCase().endsWith(XML_EXT); 28 return acceptsZipFilename(filename, "14022-reseau-tisseo-metro-bus-tram-") || filename.toLowerCase().endsWith(OdConstants.XML_EXT); 28 29 } 29 30 30 31 @Override 31 32 public boolean acceptsFile(File file) { 32 return acceptsFilename(file.getName()) && (file.getName().toLowerCase().endsWith(ZIP_EXT) || NeptuneReader.acceptsXmlNeptuneFile(file, neptuneSchemaUrl)); 33 return acceptsFilename(file.getName()) 34 && (file.getName().toLowerCase().endsWith(OdConstants.ZIP_EXT) || NeptuneReader.acceptsXmlNeptuneFile(file, neptuneSchemaUrl)); 33 35 } 34 36 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/StationsAutoPartageHandler.java
r30340 r30563 4 4 import org.openstreetmap.josm.data.osm.DataSet; 5 5 import org.openstreetmap.josm.data.osm.Node; 6 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 6 7 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; 7 8 … … 12 13 setName("Stations d'auto partage"); 13 14 setCategory(CAT_TRANSPORT); 14 getCsvHandler().setCharset(ISO8859_15); 15 getCsvHandler().setCharset(OdConstants.ISO8859_15); 15 16 } 16 17
Note:
See TracChangeset
for help on using the changeset viewer.