Changeset 35279 in osm for applications/editors/josm/plugins/opendata/modules
- Timestamp:
- 2020-01-12T18:25:16+01:00 (5 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/urbanisme/VoirieHandler.java
r35272 r35279 22 22 23 23 public VoirieHandler() { 24 this("filaire-de-voirie", "lib _off", "highway");24 this("filaire-de-voirie", "libelle", "highway"); 25 25 setName("Filaire de voirie"); 26 26 setCategory(CAT_URBANISME); … … 33 33 map.put("motorway", Arrays.asList("A6", "AUTOROUTE ")); 34 34 map.put("trunk", Arrays.asList("ROCADE ")); 35 map.put("secondary", Arrays.asList("AV ", "BD ", "ALL ", "PONT ", "RTE ", "PORT ", "BOULINGRIN")); 36 map.put("residential", Arrays.asList("RUE ", "GRANDE-RUE ", "PROM ", "CHE", "CAMINOT ", "IMP ", "COURS ", 37 "LOT ", "ANC", "VIEUX ", "PL ", "CLOS ", "CITE ", "RESIDENCE ", "SENTIER ", "QU ", "SQ ", "VOIE ", "ESP ")); 35 map.put("primary", Arrays.asList("NATIONALE ", "RN ")); 36 map.put("secondary", Arrays.asList("AV ", "AVENUE ", "BD ", "BOULEVARD ", "ALL ", "ALLEE ", "ALLEES ", "PONT ", "RTE ", "ROUTE ", 37 "PORT ", "BOULINGRIN", "DEPARTEMENTALE ", "RD ")); 38 map.put("residential", Arrays.asList("RUE ", "GRANDE-RUE ", "PASSAGE ", "PROM ", "PROMENADE ", "CHE", "CAMINOT ", "IMP ", "IMPASSE ", 39 "COURS ", "LOT ", "LOTISSEMENT ", "ANC", "VIEUX ", "PL ", "PLACE ", "CLOS ", "CITE ", "RESIDENCE ", "SENTIER ", "QU ", "QUAI ", 40 "SQ ", "SQUARE ", "VOIE ", "ESP ", "ESPACE ", "ESPLANADE ", "TRAVERSE ")); 38 41 map.put("unclassified", Arrays.asList("ZONE ")); 39 42 map.put("road", Arrays.asList("VA ")); … … 72 75 w.remove(streetField); 73 76 w.remove("mot_directeur"); 77 w.remove("code_insee"); 74 78 w.remove("color"); 79 w.remove("commune"); 80 w.remove("id_troncon"); 75 81 w.remove("rivoli"); 76 82 w.remove("nrivoli"); … … 80 86 } 81 87 82 if (name.startsWith("RPT ") || name.startsWith(" GIRATOIRE")) {88 if (name.startsWith("RPT ") || name.startsWith("RON") || name.startsWith("GIRAT")) { 83 89 // TODO: find correct highway 84 90 w.put("junction", "roundabout"); … … 87 93 } 88 94 89 w.put("name", name); 95 if (w.hasKey("libelle_complet")) { 96 replace(w, "libelle_complet", "name"); 97 } else { 98 w.put("name", name); 99 } 90 100 91 101 if (name.matches("D[0-9]+.*")) { … … 101 111 associatedStreets.put(getStreetId(w), street = new Relation()); 102 112 street.put("type", "associatedStreet"); 103 street.put("name", name);113 street.put("name", w.get("name")); 104 114 ds.addPrimitive(street); 105 115 }
Note:
See TracChangeset
for help on using the changeset viewer.