Changeset 35279 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2020-01-12T18:25:16+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java
r35269 r35279 83 83 } 84 84 } 85 // Remove geographic attributes 86 for (OsmPrimitive p : dataSet.allPrimitives()) { 87 if (p.isTagged()) { 88 p.remove("geo_point_2d"); 89 } 90 } 85 91 } 86 92 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/util/NamesFrUtils.java
r34646 r35279 53 53 if (label == null) { 54 54 return label; 55 } else if (label. equals("All")) {55 } else if (label.startsWith("All")) { 56 56 return "Allée"; 57 57 } else if (label.equals("Autoroute")) { 58 58 return label; 59 } else if (label.startsWith("Anc")) { // Anc, Ancien59 } else if (label.startsWith("Anc")) { 60 60 return "Ancien"; 61 } else if (label. equals("Av")) {61 } else if (label.startsWith("Av")) { 62 62 return "Avenue"; 63 } else if (label.equals("Bd")) { 63 } else if (label.startsWith("Barr")) { 64 return "Barrière"; 65 } else if (label.equals("Bd") || label.equals("Boulevard")) { 64 66 return "Boulevard"; 67 } else if (label.startsWith("Bret")) { 68 return "Bretelle"; 65 69 } else if (label.equals("Bre")) { 66 70 return "Bré"; … … 69 73 } else if (label.equals("Carrefour")) { 70 74 return label; 71 } else if (label.startsWith("Che")) { // Che, Chem 75 } else if (label.equals("Carré")) { 76 return label; 77 } else if (label.startsWith("Chemine")) { 78 return "Cheminement"; 79 } else if (label.startsWith("Che")) { 72 80 return "Chemin"; 73 } else if (label. equals("Cite")) {81 } else if (label.startsWith("Cit")) { 74 82 return "Cité"; 75 83 } else if (label.equals("Clos")) { 76 84 return label; 77 } else if (label.equals("Cote") ) {85 } else if (label.equals("Cote") || label.equals("Côte")) { 78 86 return "Côte"; 79 87 } else if (label.equals("Cours")) { 80 88 return label; 81 } else if (label.equals("Dom")) { 89 } else if (label.startsWith("Dep") || label.startsWith("Dép")) { 90 return "Départementale"; 91 } else if (label.startsWith("Dom")) { 82 92 return "Domaine"; 83 } else if (label.equals("Dsc") ) {93 } else if (label.equals("Dsc") || label.startsWith("Desc")) { 84 94 return "Descente"; 85 } else if (label.equals("Esp") ) {95 } else if (label.equals("Esp") || label.startsWith("Espl")) { 86 96 return "Esplanade"; 87 } else if (label. equals("Espa")) {97 } else if (label.startsWith("Espa")) { 88 98 return "Espace"; 89 99 } else if (label.equals("Giratoire")) { … … 93 103 } else if (label.equals("Hameau")) { 94 104 return label; 95 } else if (label. equals("Imp")) {105 } else if (label.startsWith("Imp") || label.equals("Ipasse")) { 96 106 return "Impasse"; 97 } else if (label. equals("Itineraire")) {107 } else if (label.startsWith("Itin")) { 98 108 return "Itinéraire"; 99 109 } else if (label.equals("Jardin")) { … … 102 112 label.equals("Saint")) { // Lieux-dits 103 113 return label; 104 } else if (label. equals("Lot")) {114 } else if (label.startsWith("Lot")) { 105 115 return "Lotissement"; 106 116 } else if (label.equals("Mail")) { … … 108 118 } else if (label.equals("Mas")) { 109 119 return label; 120 } else if (label.startsWith("Nat")) { 121 return "Nationale"; 110 122 } else if (label.equals("Parc")) { 111 123 return label; 112 } else if (label.equals("Pas")) { 124 } else if (label.equals("Passerelle")) { 125 return label; 126 } else if (label.startsWith("Pas")) { 113 127 return "Passage"; 114 } else if (label.equals("Passerelle")) { 115 return label; 116 } else if (label.equals("Pch")) { 117 return "Petit Chemin"; 118 } else if (label.equals("Petit")) { 128 } else if (label.equals("Pch") || label.startsWith("Petit-chem")) { 129 return "Petit-chemin"; 130 } else if (label.equals("Petit") || label.equals("Petite")) { 119 131 return label; 120 132 } else if (label.equals("Petite-allée")) { … … 122 134 } else if (label.equals("Petite-rue")) { 123 135 return label; 124 } else if (label.equals("Pl")) { 136 } else if (label.equals("Plan")) { 137 return label; 138 } else if (label.startsWith("Pl")) { 125 139 return "Place"; 126 } else if (label.equals("Plan")) {127 return label;128 140 } else if (label.equals("Pont")) { 129 141 return label; … … 132 144 } else if (label.equals("Porte")) { 133 145 return label; 134 } else if (label. equals("Prom")) {146 } else if (label.startsWith("Prom")) { 135 147 return "Promenade"; 136 } else if (label.equals("Prv") ) {148 } else if (label.equals("Prv") || label.startsWith("Parv")) { 137 149 return "Parvis"; 138 } else if (label. equals("Qu")) {150 } else if (label.startsWith("Qu")) { 139 151 return "Quai"; 140 152 } else if (label.equals("Rampe")) { 141 153 return label; 142 } else if (label. equals("Residence")) {154 } else if (label.startsWith("Res") || label.startsWith("Rés")) { 143 155 return "Résidence"; 144 156 } else if (label.equals("Rocade")) { 145 157 return label; 146 } else if (label.equals("Rpt") ) {158 } else if (label.equals("Rpt") || label.startsWith("Ron")) { 147 159 return "Rond-Point"; 148 } else if (label.equals("Rte") ) {160 } else if (label.equals("Rte") || label.equals("Route")) { 149 161 return "Route"; 150 } else if (label.equals("Rue") ) {151 return label;162 } else if (label.equals("Rue") || label.equals("Rued")) { 163 return "Rue"; 152 164 } else if (label.equals("Sentier")) { 153 165 return label; 154 } else if (label. equals("Sq")) {166 } else if (label.startsWith("Sq")) { 155 167 return "Square"; 156 } else if (label.equals("Tra")) { 168 } else if (label.equals("Théâtre")) { 169 return "Théâtre"; 170 } else if (label.startsWith("Tra")) { 157 171 return "Traverse"; 158 172 } else if (label.equals("Vieux")) {
Note:
See TracChangeset
for help on using the changeset viewer.