| | 1 | {{{ |
| | 2 | #!rule |
| | 3 | meta |
| | 4 | { |
| | 5 | title: "Geology Validator"; |
| | 6 | version: "[[revision]]_[[date]]"; |
| | 7 | description: "Validates mapping of geological and natural features"; |
| | 8 | author: "Kai Johnson"; |
| | 9 | link: "https://josm.openstreetmap.de/wiki/Rules/Geology"; |
| | 10 | baselanguage: "en"; |
| | 11 | seealso: "https://wiki.openstreetmap.org/wiki/Glossary_of_landforms"; |
| | 12 | } |
| | 13 | |
| | 14 | /* Abîme - see Sinkhole */ |
| | 15 | /* Abyssal fan */ |
| | 16 | /* Abyssal plain */ |
| | 17 | /* Ait - see Islet */ |
| | 18 | /* Alluvial fan */ |
| | 19 | /* Anabranch */ |
| | 20 | /* Arch */ |
| | 21 | |
| | 22 | /* Archipelago */ |
| | 23 | *["natural"="archipelago"] |
| | 24 | { |
| | 25 | group: "deprecated tagging"; |
| | 26 | throwWarning: "Use place=archipelago in place of natural=archipelago"; |
| | 27 | fixChangeKey: "natural=>place"; |
| | 28 | } |
| | 29 | |
| | 30 | node["place"="archipelago"], |
| | 31 | way["place"="archipelago"] |
| | 32 | { |
| | 33 | group: "geometry"; |
| | 34 | throwWarning: "Map place=archipelago as a relation with all the islands and islets as members"; |
| | 35 | } |
| | 36 | |
| | 37 | relation["place"="archipelago"] > *["natural"!="coastline"]["natural"!="atoll"]["place"!~/island|islet/] |
| | 38 | { |
| | 39 | group: "missing tag"; |
| | 40 | throwWarning: "All the members of an archipelago relation should have either natural=coastline, natural=atoll, or place=island/islet"; |
| | 41 | } |
| | 42 | |
| | 43 | /* Arête */ |
| | 44 | node["natural"="arete"], |
| | 45 | way["natural"="arete"]:closed, |
| | 46 | relation["natural"="arete"]:closed |
| | 47 | { |
| | 48 | group: "geometry"; |
| | 49 | throwError: "Map natural=arete as an unclosed way"; |
| | 50 | } |
| | 51 | |
| | 52 | /* Arroyo */ |
| | 53 | |
| | 54 | /* Atoll */ |
| | 55 | node["place"="atoll"], |
| | 56 | way["place"="atoll"]!:closed, |
| | 57 | relation["place"="atoll"] |
| | 58 | { |
| | 59 | group: "geometry"; |
| | 60 | throwWarning: "Map place=atoll as a single way enclosing the entire atoll"; |
| | 61 | } |
| | 62 | |
| | 63 | /* Ayre - see Beach */ |
| | 64 | /* Badlands */ |
| | 65 | /* Bajada */ |
| | 66 | /* Bar - see Reef */ |
| | 67 | /* Barchan */ |
| | 68 | /* Barren land */ |
| | 69 | /* Barrier bar - see Reef */ |
| | 70 | /* Barrier island - see Island */ |
| | 71 | |
| | 72 | /* Basin */ |
| | 73 | *["geological"="basin"] |
| | 74 | { |
| | 75 | group: "deprecated tagging"; |
| | 76 | throwWarning: "Consider using natural=basin/depression/valley/flat in place of geological=basin"; |
| | 77 | } |
| | 78 | |
| | 79 | /* Bay */ |
| | 80 | /* |
| | 81 | relation["natural"="bay"] |
| | 82 | { |
| | 83 | group: "geometry"; |
| | 84 | throwWarning: "Consider mapping natural=bay as a single node"; |
| | 85 | } |
| | 86 | */ |
| | 87 | |
| | 88 | /* Baymouth bar - see Reef */ |
| | 89 | /* Bayou */ |
| | 90 | |
| | 91 | /* Beach */ |
| | 92 | *["natural"="beach"][!"surface"] |
| | 93 | { |
| | 94 | group: "missing tag"; |
| | 95 | throwWarning: "Add surface=sand/gravel/pebblestone/* for additional detail"; |
| | 96 | } |
| | 97 | |
| | 98 | /* Beach cusps */ |
| | 99 | /* Beach ridge */ |
| | 100 | |
| | 101 | /* Bench */ |
| | 102 | *["natural"="earth_bank"][!"earth_bank"] |
| | 103 | { |
| | 104 | group: "missing tag"; |
| | 105 | throwWarning: "Add earth_bank=gully/scarp/grassy_steep_slope/cut_bank/* for additional detail"; |
| | 106 | } |
| | 107 | |
| | 108 | node["natural"="earth_bank"] |
| | 109 | { |
| | 110 | group: "geometry"; |
| | 111 | throwWarning: "Map natural=earth_bank as a way with the lower terrain to the right"; |
| | 112 | } |
| | 113 | |
| | 114 | /* Bend */ |
| | 115 | *["water"="bend"] |
| | 116 | { |
| | 117 | group: "deprecated tagging"; |
| | 118 | throwWarning: "Use waterway=bend along the flow line to tag a bend in a river or stream"; |
| | 119 | } |
| | 120 | |
| | 121 | /* Bight - see Bay */ |
| | 122 | /* Blockfield */ |
| | 123 | /* Blowhole */ |
| | 124 | /* Blowout */ |
| | 125 | /* Blue hole - see Sinkhole */ |
| | 126 | /* Bluff */ |
| | 127 | |
| | 128 | /* Boulder */ |
| | 129 | *["natural"="boulder"] |
| | 130 | { |
| | 131 | group: "deprecated tagging"; |
| | 132 | throwWarning: "Use natural=stone in place of natural=boulder"; |
| | 133 | fixAdd: "natural=stone"; |
| | 134 | } |
| | 135 | |
| | 136 | /* Bornhardt */ |
| | 137 | /* Braid bar - see Bar */ |
| | 138 | /* Braided channel - see Channel */ |
| | 139 | /* Butte */ |
| | 140 | /* Calanque - see Bay */ |
| | 141 | |
| | 142 | /* Caldera */ |
| | 143 | *["natural"="caldera"] |
| | 144 | { |
| | 145 | group: "deprecated tagging"; |
| | 146 | throwWarning: "Use geological=volcanic_caldera_rim in place of natural=caldera"; |
| | 147 | fixAdd: "geological=volcanic_caldera_rim"; |
| | 148 | fixRemove: "natural"; |
| | 149 | } |
| | 150 | |
| | 151 | /* Canyon */ |
| | 152 | *["natural"="canyon"] |
| | 153 | { |
| | 154 | group: "deprecated tagging"; |
| | 155 | throwWarning: "Use natural=valley in place of natural=canyon"; |
| | 156 | fixAdd: "natural=valley"; |
| | 157 | } |
| | 158 | |
| | 159 | /* Cape */ |
| | 160 | *["natural"="point"], |
| | 161 | *["natural"="headland"] |
| | 162 | { |
| | 163 | group: "deprecated tagging"; |
| | 164 | throwWarning: "Use natural=cape in place of {0.tag}"; |
| | 165 | fixAdd: "natural=cape"; |
| | 166 | } |
| | 167 | |
| | 168 | way["natural"="cape"], |
| | 169 | relation["natural"="cape"] |
| | 170 | { |
| | 171 | group: "geometry"; |
| | 172 | throwWarning: "Map natural=cape as a single node, not as a way or relation"; |
| | 173 | } |
| | 174 | |
| | 175 | /* Carolina bay */ |
| | 176 | |
| | 177 | /* Cave */ |
| | 178 | *["natural"="grotto"], |
| | 179 | *["geological"="grotto"] |
| | 180 | { |
| | 181 | group: "deprecated tagging"; |
| | 182 | throwWarning: "Use natural=cave_entrance in place of {0.tag}"; |
| | 183 | } |
| | 184 | |
| | 185 | /* Cenote - see Sinkhole */ |
| | 186 | /* Channel - see Strait */ |
| | 187 | /* Chenier */ |
| | 188 | /* Cirque */ |
| | 189 | /* Cliff */ |
| | 190 | |
| | 191 | /* Coast */ |
| | 192 | *["natural"="coastline_old"], |
| | 193 | *["natural"="inactive_coastline"], |
| | 194 | *["natural"="old_coastline"] |
| | 195 | { |
| | 196 | throwError: "Delete old coastline ways once the new coastline is in place"; |
| | 197 | fixDeleteObject; |
| | 198 | } |
| | 199 | |
| | 200 | /* Col */ |
| | 201 | *["natural"="col"] |
| | 202 | { |
| | 203 | group: "deprecated tagging"; |
| | 204 | throwWarning: "Use natural=saddle in place of natural=col"; |
| | 205 | fixAdd: "natural=saddle"; |
| | 206 | } |
| | 207 | |
| | 208 | /* Columnar jointing */ |
| | 209 | /* Combe - see Valley */ |
| | 210 | /* Complex crater */ |
| | 211 | /* Complex volcano */ |
| | 212 | /* Confluence */ |
| | 213 | /* Continental shelf */ |
| | 214 | |
| | 215 | /* Coral reef - see Reef */ |
| | 216 | /* Couloir - see Valley */ |
| | 217 | |
| | 218 | /* Cove */ |
| | 219 | *["natural"="cove"] |
| | 220 | { |
| | 221 | group: "deprecated tagging"; |
| | 222 | throwWarning: "Use natural=bay in place of natural=cove"; |
| | 223 | fixAdd: "natural=bay"; |
| | 224 | } |
| | 225 | |
| | 226 | /* Cove (valley) - see Valley */ |
| | 227 | /* Crevasse */ |
| | 228 | /* Crevasse splay */ |
| | 229 | /* Cryovolcano */ |
| | 230 | /* Cuesta */ |
| | 231 | /* Cuspate foreland - see Cape */ |
| | 232 | /* Cut bank - see Bench */ |
| | 233 | /* Dale - see Valley */ |
| | 234 | /* Defile - see Valley */ |
| | 235 | /* Dell - see Valley */ |
| | 236 | /* Delta, River */ |
| | 237 | |
| | 238 | /* Depression */ |
| | 239 | *["geological"="maar"] |
| | 240 | { |
| | 241 | group: "deprecated tagging"; |
| | 242 | throwWarning: "Consider natural=depression + geological=volcanic_caldera_rim in place of geological=maar"; |
| | 243 | fixRemove: "geological"; |
| | 244 | fixAdd: "natural=depression"; |
| | 245 | fixAdd: "geological=volcanic_caldera_rim"; |
| | 246 | } |
| | 247 | |
| | 248 | /* Desert */ |
| | 249 | way["natural"="desert"], |
| | 250 | relation["natural"="desert"] |
| | 251 | { |
| | 252 | group: "geometry"; |
| | 253 | throwWarning: "Map natural=desert as a single node at the center of a named desert area"; |
| | 254 | } |
| | 255 | |
| | 256 | node["natural"="desert"][!"name"] |
| | 257 | { |
| | 258 | group: "missing tag"; |
| | 259 | throwWarning: "natural=desert without name=* tag"; |
| | 260 | } |
| | 261 | |
| | 262 | /* Desert pavement */ |
| | 263 | /* Diatreme */ |
| | 264 | /* Dike */ |
| | 265 | /* Dirt cone */ |
| | 266 | |
| | 267 | /* Disappearing stream */ |
| | 268 | *["waterway"="sink"] |
| | 269 | { |
| | 270 | group: "deprecated tagging"; |
| | 271 | throwWarning: "Use waterway=stream_end in place of waterway=sink"; |
| | 272 | fixAdd: "waterway=stream_end"; |
| | 273 | } |
| | 274 | |
| | 275 | node["waterway"="stream_end"] < way[!"waterway"] |
| | 276 | way["waterway"="stream_end"], |
| | 277 | relation["waterway"="stream_end"] |
| | 278 | { |
| | 279 | group: "geometry"; |
| | 280 | throwError: "Map waterway=stream_end as a single node on a waterway"; |
| | 281 | } |
| | 282 | |
| | 283 | /* Dissected plateau */ |
| | 284 | /* Doab */ |
| | 285 | /* Doline - see Sinkhole */ |
| | 286 | /* Dome */ |
| | 287 | /* Drainage basin */ |
| | 288 | /* Drainage divide */ |
| | 289 | /* Draw - see Valley */ |
| | 290 | /* Drumlin */ |
| | 291 | |
| | 292 | /* Dry lake */ |
| | 293 | *["natural"="dry_lake"][!"surface"] |
| | 294 | { |
| | 295 | group: "missing tag"; |
| | 296 | throwWarning: "Add surface=salt/silt/clay/* for additional detail"; |
| | 297 | } |
| | 298 | |
| | 299 | /* Dry wash */ |
| | 300 | /* Dune */ |
| | 301 | /* Dune system */ |
| | 302 | /* Earthflow - see Landslide */ |
| | 303 | /* Ejecta blanket */ |
| | 304 | /* Endorheic basin */ |
| | 305 | /* Endorheic lake */ |
| | 306 | /* Erg */ |
| | 307 | /* Escarpment */ |
| | 308 | /* Esker */ |
| | 309 | |
| | 310 | /* Estuary */ |
| | 311 | *["estuary"="yes"] |
| | 312 | { |
| | 313 | group: "deprecated tagging"; |
| | 314 | throwWarning: "Consider tidal=yes in place of estuary=yes"; |
| | 315 | fixChangeKey: "estuary=>tidal"; |
| | 316 | } |
| | 317 | |
| | 318 | /* Estavelle - see Sinkhole */ |
| | 319 | /* Exhumed river channel */ |
| | 320 | /* Faceted spur */ |
| | 321 | |
| | 322 | /* Fault */ |
| | 323 | *["natural"="fault"] |
| | 324 | { |
| | 325 | group: "deprecated tagging"; |
| | 326 | throwWarning: "Use geological=fault in place of natural=fault"; |
| | 327 | fixChangeKey: "natural=>geological"; |
| | 328 | } |
| | 329 | |
| | 330 | /* Fault scarp - see Bench */ |
| | 331 | /* Firth - see Bay */ |
| | 332 | /* Fissure */ |
| | 333 | /* Fissure vent */ |
| | 334 | /* Fjard - see Bay */ |
| | 335 | /* Fjord - see Bay */ |
| | 336 | /* Flat */ |
| | 337 | /* Flatiron */ |
| | 338 | /* Floodplain */ |
| | 339 | /* Fluvial island - see Island */ |
| | 340 | /* Fluvial terrace - see Cut bank */ |
| | 341 | /* Foiba - see Sinkhole */ |
| | 342 | /* Fumarole */ |
| | 343 | /* Gat - see Strait */ |
| | 344 | /* Geo - see Bay */ |
| | 345 | |
| | 346 | /* Geyser */ |
| | 347 | *["geological"="volcanic_geyser"] |
| | 348 | { |
| | 349 | group: "deprecated tagging"; |
| | 350 | throwWarning: "Use natural=geyser + geyser:type=volcanic in place of geological=volcanic_geyser"; |
| | 351 | fixAdd: "natural=geyser"; |
| | 352 | fixAdd: "geyser:type=volcanic"; |
| | 353 | fixRemove: "geological"; |
| | 354 | } |
| | 355 | |
| | 356 | *["natural"="geyser"][!"geyser:type"] |
| | 357 | { |
| | 358 | group: "missing tag"; |
| | 359 | throwWarning: "Add geyser_type=volcanic/co2 for additional detail"; |
| | 360 | } |
| | 361 | |
| | 362 | /* Giant's kettle */ |
| | 363 | *["geological"="giants_kettle"][!"natural"] |
| | 364 | { |
| | 365 | group: "missing tag"; |
| | 366 | throwWarning: "Add natural=depression for additional detail"; |
| | 367 | fixAdd: "natural=depression"; |
| | 368 | } |
| | 369 | |
| | 370 | /* Glacial erratic */ |
| | 371 | *["geological"="glacial_erratic"]["natural"!="stone"] |
| | 372 | { |
| | 373 | group: "missing tag"; |
| | 374 | throwWarning: "Add natural=stone for additional detail"; |
| | 375 | fixAdd: "natural=stone"; |
| | 376 | } |
| | 377 | |
| | 378 | /* Glacial lake */ |
| | 379 | /* Glacial polish */ |
| | 380 | |
| | 381 | /* Glacier */ |
| | 382 | *["natural"="glacier"][!"glacier:type"] |
| | 383 | { |
| | 384 | group: "missing tag"; |
| | 385 | throwWarning: "Add glacier:type=mountain/valley/shelf/* for additional detail"; |
| | 386 | } |
| | 387 | |
| | 388 | /* Glacier cave */ |
| | 389 | /* Glacier foreland */ |
| | 390 | /* Glen - see Valley */ |
| | 391 | /* Gorge - see Valley */ |
| | 392 | /* Graben */ |
| | 393 | /* Gulch - see Valley */ |
| | 394 | |
| | 395 | /* Gulf */ |
| | 396 | way["place"="ocean"], |
| | 397 | relation["place"="ocean"], |
| | 398 | way["place"="sea"], |
| | 399 | relation["place"="sea"] |
| | 400 | { |
| | 401 | group: "geometry"; |
| | 402 | throwError: "Map {0.tag} as a single node, not as a way or relation"; |
| | 403 | } |
| | 404 | |
| | 405 | /* Gully - see Valley */ |
| | 406 | /* Gut (coastal geography) - see Strait */ |
| | 407 | /* Guyot */ |
| | 408 | /* Hanging valley */ |
| | 409 | /* Headland - see Cape */ |
| | 410 | /* Hill */ |
| | 411 | /* Hilly area */ |
| | 412 | /* Hogback */ |
| | 413 | /* Hollow */ |
| | 414 | /* Homoclinal ridge */ |
| | 415 | |
| | 416 | /* Hoodoo */ |
| | 417 | *["geological"="hoodoo"]["natural"!="cliff"] |
| | 418 | { |
| | 419 | group: "deprecated tagging"; |
| | 420 | throwWarning: "Use natural=cliff with geological=hoodoo to outline the vertical rock face of the pinnacle"; |
| | 421 | fixAdd: "natural=cliff"; |
| | 422 | } |
| | 423 | |
| | 424 | /* Horst */ |
| | 425 | |
| | 426 | /* Hot spring */ |
| | 427 | *["geological"="geothermal"] |
| | 428 | { |
| | 429 | group: "deprecated tagging"; |
| | 430 | throwWarning: "Use natural=hot_spring in place of geological=geothermal"; |
| | 431 | fixAdd: "natural=hot_spring"; |
| | 432 | fixRemove: "geological"; |
| | 433 | } |
| | 434 | |
| | 435 | /* Ice cap - see Glacier */ |
| | 436 | /* Ice field - see Glacier */ |
| | 437 | /* Ice sheet - see Glacier */ |
| | 438 | |
| | 439 | /* Impact crater */ |
| | 440 | *["natural"="crater"] |
| | 441 | { |
| | 442 | group: "deprecated tagging"; |
| | 443 | throwWarning: "Use geological=meteor_crater/volcanic_caldera_rim in place of natural=crater"; |
| | 444 | } |
| | 445 | |
| | 446 | /* Inlet */ |
| | 447 | *["natural"="inlet"] |
| | 448 | { |
| | 449 | group: "deprecated tagging"; |
| | 450 | throwWarning: "Use natural=bay in place of natural=inlet"; |
| | 451 | fixAdd: "natural=bay"; |
| | 452 | } |
| | 453 | |
| | 454 | /* Inselberg */ |
| | 455 | /* Interfluve */ |
| | 456 | /* Inverted relief */ |
| | 457 | |
| | 458 | /* Island */ |
| | 459 | *["natural"="island"] |
| | 460 | { |
| | 461 | group: "deprecated tagging"; |
| | 462 | throwWarning: "Use place=island in place of natural=island"; |
| | 463 | fixChangeKey: "natural=>place"; |
| | 464 | } |
| | 465 | |
| | 466 | *["natural"="land"] |
| | 467 | { |
| | 468 | group: "deprecated tagging"; |
| | 469 | throwWarning: "Use place=island/islet in place of natural=land"; |
| | 470 | } |
| | 471 | |
| | 472 | /* Islet */ |
| | 473 | *["natural"="islet"] |
| | 474 | { |
| | 475 | group: "deprecated tagging"; |
| | 476 | throwWarning: "Use place=islet in place of natural=islet"; |
| | 477 | fixChangeKey: "natural=>place"; |
| | 478 | } |
| | 479 | |
| | 480 | /* Isthmus */ |
| | 481 | /* Joint */ |
| | 482 | /* Kame */ |
| | 483 | /* Kame delta */ |
| | 484 | /* Karst */ |
| | 485 | /* Karst fenster */ |
| | 486 | /* Karst valley */ |
| | 487 | /* Kettle */ |
| | 488 | *["geological"="kettle"]["natural"!="depression"] |
| | 489 | { |
| | 490 | group: "missing tag"; |
| | 491 | throwWarning: "Add natural=depression for additional detail"; |
| | 492 | fixAdd: "natural=depression"; |
| | 493 | } |
| | 494 | |
| | 495 | /* Kīpuka */ |
| | 496 | |
| | 497 | /* Knoll */ |
| | 498 | *["natural"="knoll"] |
| | 499 | { |
| | 500 | group: "deprecated tagging"; |
| | 501 | throwWarning: "Use natural=hill in place of natural=knoll"; |
| | 502 | fixAdd: "natural=hill"; |
| | 503 | } |
| | 504 | |
| | 505 | /* Lacustrine plain */ |
| | 506 | /* Lacustrine terrace */ |
| | 507 | /* Lagoon - see Lake */ |
| | 508 | /* Lake */ |
| | 509 | *["natural"="lagoon"], |
| | 510 | *["natural"="lake"], |
| | 511 | *["natural"="pond"] |
| | 512 | { |
| | 513 | group: "deprecated tagging"; |
| | 514 | throwWarning: "Use natural=water + water={0.value} in place of {0.tag}"; |
| | 515 | fixChangeKey: "natural=>water"; |
| | 516 | fixAdd: "natural=water"; |
| | 517 | } |
| | 518 | |
| | 519 | /* Landslide */ |
| | 520 | *["natural"="landslide"][!"landslide"], |
| | 521 | *["geological"="landslide"][!"landslide"] |
| | 522 | { |
| | 523 | group: "missing tag"; |
| | 524 | throwWarning: "Add landslide=* for additional detail"; |
| | 525 | } |
| | 526 | |
| | 527 | *["geological"="landslip"], |
| | 528 | *["geological"="gravitational_creep"] |
| | 529 | { |
| | 530 | group: "deprecated tagging"; |
| | 531 | throwWarning: "Use natural=landslide + landslide=* in place of {0.tag}"; |
| | 532 | } |
| | 533 | |
| | 534 | /* Lava */ |
| | 535 | *["natural"="lava"] |
| | 536 | { |
| | 537 | group: "deprecated tagging"; |
| | 538 | throwWarning: "Use natural=bare_rock + geological=volcanic_lava_flow in place of natural=lava"; |
| | 539 | fixAdd: "natural=bare_rock"; |
| | 540 | fixAdd: "geological=volcanic_lava_flow"; |
| | 541 | } |
| | 542 | |
| | 543 | /* Lava dome */ |
| | 544 | /* Lava field */ |
| | 545 | /* Lava flow */ |
| | 546 | /* Lava lake */ |
| | 547 | /* Lava spine */ |
| | 548 | /* Lava tube */ |
| | 549 | /* Lavaka */ |
| | 550 | /* Levee */ |
| | 551 | |
| | 552 | /* Limestone pavement */ |
| | 553 | *["natural"="bare_rock"][!"material"] |
| | 554 | { |
| | 555 | group: "missing tag"; |
| | 556 | throwWarning: "Add material=granite/sandstone/marble/limestone/basalt/* for additional detail"; |
| | 557 | } |
| | 558 | |
| | 559 | *["geological"="lapiaz"] |
| | 560 | { |
| | 561 | group: "deprecated tagging"; |
| | 562 | throwWarning: "Use natural=bare_rock + material=limestone in place of geological=lapiaz"; |
| | 563 | fixAdd: "shop=gemstones"; |
| | 564 | fixRemove: "geological"; |
| | 565 | } |
| | 566 | |
| | 567 | /* Loess */ |
| | 568 | /* Maar */ |
| | 569 | /* Machair */ |
| | 570 | /* Malpaís */ |
| | 571 | /* Mamelon */ |
| | 572 | /* Marine terrace */ |
| | 573 | /* Marsh - see Wetland */ |
| | 574 | /* Massif */ |
| | 575 | /* Meander */ |
| | 576 | /* Mesa */ |
| | 577 | /* Mid-ocean ridge */ |
| | 578 | /* Mogote */ |
| | 579 | |
| | 580 | /* Moraine */ |
| | 581 | *["natural"="moraine"] |
| | 582 | { |
| | 583 | group: "deprecated tagging"; |
| | 584 | throwWarning: "Use natural=hill + geological=moraine in place of natural=moraine"; |
| | 585 | fixAdd: "natural=hill"; |
| | 586 | fixAdd: "geological=moraine"; |
| | 587 | } |
| | 588 | |
| | 589 | *["geological"="moraine"][!"natural"] |
| | 590 | { |
| | 591 | group: "missing tag"; |
| | 592 | throwWarning: "Consider adding natural=hill/ridge for additional detail"; |
| | 593 | } |
| | 594 | |
| | 595 | /* Moulin */ |
| | 596 | /* Mountain - see Summit */ |
| | 597 | |
| | 598 | /* Mountain pass */ |
| | 599 | node["mountain_pass"="yes"] < way[!"highway"], |
| | 600 | way["mountain_pass"="yes"], |
| | 601 | relation["mountain_pass"="yes"] |
| | 602 | { |
| | 603 | group: "geometry"; |
| | 604 | throwError: "Map mountain_pass=yes as a node at the highest point on a highway"; |
| | 605 | } |
| | 606 | |
| | 607 | /* Mountain range */ |
| | 608 | *["natural"="range"] |
| | 609 | { |
| | 610 | group: "deprecated tagging"; |
| | 611 | throwWarning: "Use natural=mountain_range in place of natural=range"; |
| | 612 | fixAdd: "natural=mountain_range"; |
| | 613 | } |
| | 614 | |
| | 615 | /* Mud volcano */ |
| | 616 | /* Mudflat - see Wetland */ |
| | 617 | /* Mushroom rock */ |
| | 618 | /* Nadir */ |
| | 619 | /* Narrows */ |
| | 620 | /* Natural arch */ |
| | 621 | /* Nunatak */ |
| | 622 | /* Oasis */ |
| | 623 | /* Oceanic basin */ |
| | 624 | /* Oceanic plateau */ |
| | 625 | /* Oceanic ridge */ |
| | 626 | /* Oceanic trench */ |
| | 627 | |
| | 628 | /* Outcrop */ |
| | 629 | *["geological"="outcrop"]["natural"!="bare_rock"] |
| | 630 | { |
| | 631 | group: "missing tag"; |
| | 632 | throwWarning: "Add natural=bare_rock for additional detail"; |
| | 633 | fixAdd: "natural=bare_rock"; |
| | 634 | } |
| | 635 | |
| | 636 | *["natural"="bedrock"], |
| | 637 | *["natural"="rock_formation"] |
| | 638 | { |
| | 639 | group: "deprecated tagging"; |
| | 640 | throwWarning: "Use natural=bare_rock + geological=outcrop in place of {0.tag}"; |
| | 641 | fixAdd: "natural=bare_rock"; |
| | 642 | fixAdd: "geological=outcrop"; |
| | 643 | } |
| | 644 | |
| | 645 | /* Outwash fan */ |
| | 646 | /* Outwash plain */ |
| | 647 | /* Oxbow lake - see Lake */ |
| | 648 | /* Paleoplain */ |
| | 649 | /* Panhole */ |
| | 650 | /* Parasitic cone - see Volcano */ |
| | 651 | /* Pediment */ |
| | 652 | /* Pediplain */ |
| | 653 | /* Peneplain */ |
| | 654 | /* Peninsula */ |
| | 655 | /* Pingo */ |
| | 656 | /* Pinnacle */ |
| | 657 | /* Pit crater - see Sinkhole */ |
| | 658 | /* Plain */ |
| | 659 | /* Plate boundary */ |
| | 660 | |
| | 661 | /* Plateau */ |
| | 662 | *["geological"="plateau"] |
| | 663 | { |
| | 664 | group: "deprecated tagging"; |
| | 665 | throwWarning: "Use natural=plateau in place of geological=plateau"; |
| | 666 | fixChangeKey: "geological=>natural"; |
| | 667 | } |
| | 668 | |
| | 669 | /* Playa - see Dry Lake */ |
| | 670 | /* Plunge pool */ |
| | 671 | /* Point bar */ |
| | 672 | /* Polje */ |
| | 673 | /* Pond - see Lake */ |
| | 674 | /* Ponor - see Sinkhole */ |
| | 675 | /* Pothole */ |
| | 676 | /* Potrero */ |
| | 677 | /* Proglacial lake */ |
| | 678 | /* Promontory */ |
| | 679 | /* Pseudocrater */ |
| | 680 | /* Pull-apart basin */ |
| | 681 | /* Pyramidal peak */ |
| | 682 | /* Raised beach */ |
| | 683 | |
| | 684 | /* Rapid */ |
| | 685 | *["natural"="rapids"] |
| | 686 | { |
| | 687 | group: "deprecated tagging"; |
| | 688 | throwWarning: "Use waterway=rapids in place of natural=rapids"; |
| | 689 | fixChangeKey: "natural=>waterway"; |
| | 690 | } |
| | 691 | |
| | 692 | /* Ravine - see Valley */ |
| | 693 | |
| | 694 | /* Reef */ |
| | 695 | *["natural"="reef"][!"reef"] |
| | 696 | { |
| | 697 | group: "missing tag"; |
| | 698 | throwWarning: "Add reef=coral/rock/sand/* for additional detail"; |
| | 699 | } |
| | 700 | |
| | 701 | *["natural"="sandbar"] |
| | 702 | { |
| | 703 | group: "deprecated tagging"; |
| | 704 | throwWarning: "Use natural=reef + reef=sand in place of natural=sandbar"; |
| | 705 | fixAdd: "natural=reef"; |
| | 706 | fixAdd: "reef=sand"; |
| | 707 | } |
| | 708 | |
| | 709 | /* Ria */ |
| | 710 | /* Ridge */ |
| | 711 | /* Riffle */ |
| | 712 | /* Rift valley - see Valley */ |
| | 713 | |
| | 714 | /* River */ |
| | 715 | *["natural"="riverbed"] |
| | 716 | { |
| | 717 | group: "deprecated tagging"; |
| | 718 | throwWarning: "Use natural=water + water=river in place of {0.tag}"; |
| | 719 | fixAdd: "natural=water"; |
| | 720 | fixAdd: "water=river"; |
| | 721 | } |
| | 722 | |
| | 723 | /* River delta */ |
| | 724 | /* River island - see Islet */ |
| | 725 | /* Rôche moutonnée */ |
| | 726 | |
| | 727 | /* Rock glacier */ |
| | 728 | *["natural"="glacier"]["glacier:type"="rock"] |
| | 729 | { |
| | 730 | group: "deprecated tagging"; |
| | 731 | throwWarning: "Use geological=rock_glacier + natural=scree in place of natural=glacier + glacier:type=rock"; |
| | 732 | fixAdd: "geological=rock_glacier"; |
| | 733 | fixAdd: "natural=scree"; |
| | 734 | fixRemove: "glacier:type"; |
| | 735 | } |
| | 736 | |
| | 737 | *["geological"="rock_glacier"][!"natural"] |
| | 738 | { |
| | 739 | group: "missing tag"; |
| | 740 | throwWarning: "Consider adding natural=scree for additional detail"; |
| | 741 | fixAdd: "natural=scree"; |
| | 742 | } |
| | 743 | |
| | 744 | /* Rock shelter */ |
| | 745 | *["natural"="rock_shelter"] |
| | 746 | { |
| | 747 | group: "deprecated tagging"; |
| | 748 | throwWarning: "Use natural=rock_overhang in place of natural=rock_shelter"; |
| | 749 | fixAdd: "natural=rock_overhang"; |
| | 750 | } |
| | 751 | |
| | 752 | /* Rock-cut basin */ |
| | 753 | /* Rogen moraine - see Moraine */ |
| | 754 | |
| | 755 | /* Saddle */ |
| | 756 | way["natural"="saddle"], |
| | 757 | relation["natural"="saddle"] |
| | 758 | { |
| | 759 | group: "geometry"; |
| | 760 | throwError: "Map natural=saddle as a node, not as a way or relation"; |
| | 761 | } |
| | 762 | |
| | 763 | *["natural"="gap"], |
| | 764 | *["natural"="mountain_pass"], |
| | 765 | *["natural"="notch"], |
| | 766 | *["natural"="pass"] |
| | 767 | { |
| | 768 | group: "deprecated tagging"; |
| | 769 | throwWarning: "Use natural=saddle in place of {0.tag}"; |
| | 770 | fixAdd: "natural=saddle"; |
| | 771 | } |
| | 772 | |
| | 773 | /* Salt marsh - see Wetland */ |
| | 774 | |
| | 775 | /* Salt pan */ |
| | 776 | *["geological"="salt_pan"] |
| | 777 | { |
| | 778 | group: "deprecated tagging"; |
| | 779 | throwWarning: "Consider natural=dry_lake + surface=salt in place of geological=salt_pan"; |
| | 780 | fixAdd: "natural=dry_lake"; |
| | 781 | fixAdd: "surface=salt"; |
| | 782 | fixRemove: "geological"; |
| | 783 | } |
| | 784 | |
| | 785 | /* Sand boil */ |
| | 786 | /* Sandhill */ |
| | 787 | /* Sandur */ |
| | 788 | /* Scowle */ |
| | 789 | /* Scree */ |
| | 790 | /* Sea cave */ |
| | 791 | /* Seamount */ |
| | 792 | /* Shield volcano - see Volcano */ |
| | 793 | /* Shoal */ |
| | 794 | /* Shore - see Coast*/ |
| | 795 | /* Shut-in */ |
| | 796 | /* Side valley - see Valley */ |
| | 797 | |
| | 798 | /* Sinkhole */ |
| | 799 | *["natural"="sinkhole"][!"sinkhole"] |
| | 800 | { |
| | 801 | group: "missing tag"; |
| | 802 | throwWarning: "Add sinkhole=bluehole/doline/estavelle/pit/ponor for additional detail"; |
| | 803 | } |
| | 804 | |
| | 805 | /* Slickenside */ |
| | 806 | /* Slope */ |
| | 807 | /* Snow field */ |
| | 808 | /* Sound - see Strait */ |
| | 809 | /* Spit - see Cape */ |
| | 810 | /* Spring */ |
| | 811 | /* Stack */ |
| | 812 | |
| | 813 | /* Strait */ |
| | 814 | *["natural"="channel"] |
| | 815 | { |
| | 816 | group: "deprecated tagging"; |
| | 817 | throwWarning: "Use natural=strait in place of natural=channel"; |
| | 818 | fixAdd: "natural=strait"; |
| | 819 | } |
| | 820 | |
| | 821 | /* Strandflat */ |
| | 822 | /* Strath - see Valley */ |
| | 823 | /* Stratovolcano - see Volcano */ |
| | 824 | |
| | 825 | /* Stream */ |
| | 826 | *["natural"="creek"], |
| | 827 | *["natural"="stream"] |
| | 828 | { |
| | 829 | group: "deprecated tagging"; |
| | 830 | throwWarning: "Use waterway=stream in place of {0.tag}"; |
| | 831 | fixAdd: "waterway=stream"; |
| | 832 | fixRemove: "natural"; |
| | 833 | } |
| | 834 | |
| | 835 | *["natural"="waterway"] |
| | 836 | { |
| | 837 | group: "deprecated tagging"; |
| | 838 | throwWarning: "Use waterway=river/stream in place of natural=waterway"; |
| | 839 | } |
| | 840 | |
| | 841 | /* Stream pool */ |
| | 842 | /* Strike ridge */ |
| | 843 | /* Structural bench - see Bench */ |
| | 844 | |
| | 845 | /* Structural terrace */ |
| | 846 | /* Subglacial mound - see Volcano */ |
| | 847 | /* Submarine canyon */ |
| | 848 | /* Submarine volcano */ |
| | 849 | |
| | 850 | /* Summit */ |
| | 851 | *["natural"="summit"] |
| | 852 | { |
| | 853 | group: "deprecated tagging"; |
| | 854 | throwWarning: "Use natural=peak in place of natural=summit"; |
| | 855 | fixAdd: "natural=peak"; |
| | 856 | } |
| | 857 | way["natural"="peak"], |
| | 858 | relation["natural"="peak"] |
| | 859 | { |
| | 860 | group: "geometry"; |
| | 861 | throwError: "Map natural=peak as a single node at the highest point of elevation, not as a way or relation"; |
| | 862 | } |
| | 863 | |
| | 864 | /* Supervolcano - see Volcano */ |
| | 865 | /* Surge channel */ |
| | 866 | /* Swamp */ |
| | 867 | /* Talus slope */ |
| | 868 | /* Tar pit */ |
| | 869 | /* Tepui */ |
| | 870 | /* Terrace */ |
| | 871 | /* Terracette */ |
| | 872 | /* Tessellated pavement */ |
| | 873 | /* Thalweg */ |
| | 874 | /* Tidal marsh */ |
| | 875 | /* Tide pool */ |
| | 876 | /* Tombolo */ |
| | 877 | |
| | 878 | /* Tor */ |
| | 879 | *["geological"="tor"] |
| | 880 | { |
| | 881 | group: "deprecated tagging"; |
| | 882 | throwWarning: "Use geological=outcrop in place of geological=tor"; |
| | 883 | fixAdd: "geological=outcrop"; |
| | 884 | } |
| | 885 | |
| | 886 | /* Tower karst */ |
| | 887 | /* Towhead - see Islet */ |
| | 888 | /* Trim line */ |
| | 889 | /* Truncated spur */ |
| | 890 | /* Tundra polygon */ |
| | 891 | /* Tunnel valley */ |
| | 892 | /* Turlough */ |
| | 893 | /* Tuya */ |
| | 894 | /* U-shaped valley - see Valley */ |
| | 895 | /* Uvala */ |
| | 896 | /* Vale - see Valley */ |
| | 897 | |
| | 898 | /* Valley */ |
| | 899 | way["natural"="valley"]:closed, |
| | 900 | way["natural"="gorge"]:closed, |
| | 901 | way["natural"="gully"]:closed, |
| | 902 | relation["natural"="valley"]:closed, |
| | 903 | relation["natural"="gorge"]:closed, |
| | 904 | relation["natural"="gully"]:closed |
| | 905 | { |
| | 906 | group: "geometry"; |
| | 907 | throwError: "Map {0.tag} as an unclosed way"; |
| | 908 | } |
| | 909 | |
| | 910 | /* Valley shoulder */ |
| | 911 | /* Vein */ |
| | 912 | /* Ventifact */ |
| | 913 | /* Volcanic arc */ |
| | 914 | /* Volcanic cone */ |
| | 915 | |
| | 916 | /* Volcanic crater */ |
| | 917 | *["natural"="caldera"], |
| | 918 | *["natural"="crater_rim"] |
| | 919 | { |
| | 920 | group: "deprecated tagging"; |
| | 921 | throwWarning: "Use geological=volcanic_caldera_rim in place of {0.tag}"; |
| | 922 | fixAdd: "geological=volcanic_caldera_rim"; |
| | 923 | fixRemove: "natural"; |
| | 924 | } |
| | 925 | |
| | 926 | /* Volcanic crater lake */ |
| | 927 | /* Volcanic dam */ |
| | 928 | /* Volcanic field */ |
| | 929 | /* Volcanic group */ |
| | 930 | /* Volcanic island */ |
| | 931 | /* Volcanic plateau */ |
| | 932 | /* Volcanic plug */ |
| | 933 | /* Volcanic vent */ |
| | 934 | |
| | 935 | /* Volcano */ |
| | 936 | *["natural"="volcano"][!"volcano:type"], |
| | 937 | *["natural"="volcano"][!"volcano:status"] |
| | 938 | { |
| | 939 | group: "missing tag"; |
| | 940 | throwWarning: "Add {1.key}=* for additional detail"; |
| | 941 | } |
| | 942 | |
| | 943 | /* Wadi */ |
| | 944 | *["natural"="wadi"] |
| | 945 | { |
| | 946 | group: "deprecated tagging"; |
| | 947 | throwWarning: "Use waterway=stream + intermittent=yes in place of natural=wadi"; |
| | 948 | fixAdd: "waterway=stream"; |
| | 949 | fixAdd: "intermittent=yes"; |
| | 950 | fixRemove: "natural"; |
| | 951 | } |
| | 952 | |
| | 953 | /* Waterfall */ |
| | 954 | /* Water gap */ |
| | 955 | /* Watershed */ |
| | 956 | /* Wave-cut platform */ |
| | 957 | |
| | 958 | /* Wetland */ |
| | 959 | *["natural"="wetland"][!"wetland"] |
| | 960 | { |
| | 961 | group: "missing tag"; |
| | 962 | throwWarning: "Add wetland=bog/swamp/marsh/tidalflat/* for additional detail"; |
| | 963 | } |
| | 964 | |
| | 965 | /* Wind gap */ |
| | 966 | /* Yardang */ |
| | 967 | |
| | 968 | /* Other */ |
| | 969 | *["geological"="geotope"], |
| | 970 | *["geological"="yes"], |
| | 971 | *["natural"="landform"] |
| | 972 | { |
| | 973 | group: "deprecated tagging"; |
| | 974 | throwWarning: "Use a more specific tag for the landform in place of {0.tag}"; |
| | 975 | } |
| | 976 | |
| | 977 | *["natural"="oilfield"] |
| | 978 | { |
| | 979 | group: "deprecated tagging"; |
| | 980 | throwWarning: "Use man_made=oilfield in place of natural=oilfield"; |
| | 981 | fixChangeKey: "natural=>man_made"; |
| | 982 | } |
| | 983 | |
| | 984 | }}} |