Changeset 30731 in osm for applications/editors/josm/plugins/opendata/modules/fr.cg41/src
- Timestamp:
- 2014-10-18T15:31:53+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41/Cg41Constants.java
r30340 r30731 5 5 6 6 public interface Cg41Constants extends FrenchConstants { 7 8 9 10 11 7 8 /** 9 * Source 10 */ 11 public static final String SOURCE_CG41 = "Conseil général du Loir-et-Cher"; 12 12 13 14 15 16 17 18 19 20 21 22 13 /** 14 * Icons 15 */ 16 public static final String ICON_CG41_16 = "data.fr.cg41_16.png"; 17 public static final String ICON_CG41_24 = "data.fr.cg41_24.png"; 18 19 /** 20 * Portal 21 */ 22 public static final String PORTAL_CG41 = "http://www.pilote41.fr/geosource/srv/fr/metadata.show?id="; 23 23 } -
applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41/Cg41Module.java
r30340 r30731 9 9 public class Cg41Module extends AbstractModule { 10 10 11 12 13 14 11 public Cg41Module(ModuleInformation info) { 12 super(info); 13 handlers.add(ArretsBusHandler.class); 14 handlers.add(ZonesInondablesBrayeHandler.class); 15 15 } 16 16 } -
applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41/datasets/Cg41DataSetHandler.java
r30340 r30731 9 9 10 10 public abstract class Cg41DataSetHandler extends FrenchDataSetHandler implements Cg41Constants { 11 12 13 14 15 16 17 18 19 20 21 22 23 24 11 12 public Cg41DataSetHandler(int portalId, String nationalPath) { 13 init(portalId, nationalPath); 14 } 15 16 public Cg41DataSetHandler(int portalId, String nationalPath, String relevantTag) { 17 super(relevantTag); 18 init(portalId, nationalPath); 19 } 20 21 public Cg41DataSetHandler(int portalId, String nationalPath, boolean relevantUnion, String ... relevantTags) { 22 super(relevantUnion, relevantTags); 23 init(portalId, nationalPath); 24 } 25 25 26 27 28 26 public Cg41DataSetHandler(int portalId, String nationalPath, String ... relevantTags) { 27 this(portalId, nationalPath, false, relevantTags); 28 } 29 29 30 31 32 33 30 public Cg41DataSetHandler(int portalId, String nationalPath, boolean relevantUnion, Tag ... relevantTags) { 31 super(relevantUnion, relevantTags); 32 init(portalId, nationalPath); 33 } 34 34 35 36 37 38 39 40 41 42 43 35 private final void init(int portalId, String nationalPath) { 36 setNationalPortalPath(nationalPath); 37 try { 38 if (portalId > 0) { 39 setLocalPortalURL(PORTAL_CG41 + portalId); 40 } 41 } catch (MalformedURLException e) { 42 e.printStackTrace(); 43 } 44 44 45 45 } 46 46 47 48 49 50 47 @Override 48 public String getSource() { 49 return SOURCE_CG41; 50 } 51 51 52 53 54 55 52 @Override 53 public String getLocalPortalIconName() { 54 return ICON_CG41_24; 55 } 56 56 57 58 59 60 57 @Override 58 public String getDataLayerIconName() { 59 return ICON_CG41_16; 60 } 61 61 } -
applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41/datasets/environnement/ZonesInondablesBrayeHandler.java
r30340 r30731 6 6 7 7 public class ZonesInondablesBrayeHandler extends Cg41DataSetHandler { 8 9 10 8 public ZonesInondablesBrayeHandler() { 9 super(14624, "Zone-inondable-de-la-Braye-au-1-25000-(partie-Loir-et-Cher)-30383255"); 10 } 11 11 12 13 14 15 12 @Override 13 public boolean acceptsFilename(String filename) { 14 return acceptsMifFilename(filename, "aleas_braye"); 15 } 16 16 17 18 19 20 17 @Override 18 public void updateDataSet(DataSet ds) { 19 // TODO Auto-generated method stub 20 } 21 21 } -
applications/editors/josm/plugins/opendata/modules/fr.cg41/src/org/openstreetmap/josm/plugins/opendata/modules/fr/cg41/datasets/transport/ArretsBusHandler.java
r30340 r30731 7 7 public class ArretsBusHandler extends Cg41DataSetHandler { 8 8 9 10 11 9 public ArretsBusHandler() { 10 super(14615, "Points-d'arrêt-du-réseau-de-transport-départemental-\"Route41\"-30383156"); 11 } 12 12 13 14 15 16 13 @Override 14 public boolean acceptsFilename(String filename) { 15 return acceptsShpFilename(filename, "Points_ROUTE41"); 16 } 17 17 18 19 20 21 18 @Override 19 public void updateDataSet(DataSet ds) { 20 // TODO Auto-generated method stub 21 } 22 22 }
Note:
See TracChangeset
for help on using the changeset viewer.