Changeset 30097 in osm for applications/editors/josm/plugins/opendata/modules/fr.toulouse
- Timestamp:
- 2013-11-25T02:47:26+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseModule.java
r29657 r30097 30 30 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; 31 31 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.associations.Club3eAgeHandler; 32 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.citoyennete.BureauxVoteDecoupageHandler; 32 33 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.citoyennete.BureauxVoteHandler; 33 34 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.citoyennete.MairieAnnexeHandler; … … 90 91 handlers.add(PMRHandler.class); 91 92 handlers.add(PistesCyclablesHandler.class); 93 handlers.add(BureauxVoteDecoupageHandler.class); 92 94 handlers.add(BureauxVoteHandler.class); 93 95 handlers.add(Club3eAgeHandler.class); -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/BureauxVoteHandler.java
r28554 r30097 38 38 replace(r, "TEXT", "name"); 39 39 r.put("polling_station", "2012"); 40 r.put("building", "yes"); 41 String name = r.getName(); 42 if (name != null) { 43 if (name.contains("ECOLE") || name.contains("MATERNELLE")) { 44 r.put("amenity", "school"); 45 } else if (name.contains("MAIRIE")) { 46 r.put("amenity", "townhall"); 47 } else if (name.contains("PISCINE")) { 48 r.put("leisure", "swimming_pool"); 49 } 50 } 40 51 } 41 52 }
Note:
See TracChangeset
for help on using the changeset viewer.