| | 1 | == One click presets == |
| | 2 | |
| | 3 | The default presets of JOSM have grown over time and become more and more complicated. But in some situations the whole power is not needed. |
| | 4 | |
| | 5 | The following is a set of presets which are used with a single click when stored in the toolbar. All of these don't open the preset dialog, but immediately set the required keys and values. |
| | 6 | |
| | 7 | Specify the locations for Preset OneClick icons in the dialog at Edit / Preferences / Map Settings / Tagging Presets tab / Icon paths. |
| | 8 | |
| | 9 | == See also == |
| | 10 | * [[Presets/Quick-stops]] |
| | 11 | * [[Presets/Quick-highways]] |
| | 12 | |
| | 13 | == The preset itself == |
| | 14 | |
| | 15 | {{{ |
| | 16 | #!preset |
| | 17 | <?xml version="1.0" encoding="UTF-8"?> |
| | 18 | <presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" |
| | 19 | author="iago" |
| | 20 | shortdescription="Places_ES" |
| | 21 | es.shortdescription="Lugares_ES" |
| | 22 | gl.shortdescription="Lugares_ES" |
| | 23 | description="Tag easily places (entities and territories) from Spain." |
| | 24 | version="0.[[revision]]_[[date]]" |
| | 25 | link="https://raw.githubusercontent.com/iagocg/presets_josm/master/Places_ES/Places_ES.xml" |
| | 26 | icon="city.png" |
| | 27 | baselanguage="en" |
| | 28 | > |
| | 29 | <!-- |
| | 30 | Author: Iago Casabiell González |
| | 31 | Icons created by: Iago Casabiell González |
| | 32 | Code derived from: http://josm.openstreetmap.de/tagging-preset-1.0 |
| | 33 | |
| | 34 | Format description: https://josm.openstreetmap.de/wiki/TaggingPresets |
| | 35 | --> |
| | 36 | <!-- Item chunks --> |
| | 37 | <chunk id="entities"> |
| | 38 | <text |
| | 39 | key="name" |
| | 40 | text="Name" |
| | 41 | es.text="Nombre" |
| | 42 | gl.text="Nome" |
| | 43 | /> |
| | 44 | <combo |
| | 45 | key="capital" |
| | 46 | values_searchable="true" |
| | 47 | values_sort="false" |
| | 48 | > |
| | 49 | <list_entry |
| | 50 | value="2" |
| | 51 | short_description="National capital" |
| | 52 | es.short_description="Capital nacional" |
| | 53 | gl.short_description="Capital nacional" |
| | 54 | /> |
| | 55 | <list_entry |
| | 56 | value="4" |
| | 57 | short_description="Autonomical capital" |
| | 58 | es.short_description="Capital autonómica" |
| | 59 | gl.short_description="Capital autonómica" |
| | 60 | /> |
| | 61 | <list_entry |
| | 62 | value="6" |
| | 63 | short_description="Province capital" |
| | 64 | es.short_description="Capital provincial" |
| | 65 | gl.short_description="Capital provincial" |
| | 66 | /> |
| | 67 | <list_entry |
| | 68 | value="7" |
| | 69 | short_description="County capital" |
| | 70 | es.short_description="Capital comarcal" |
| | 71 | gl.short_description="Capital comarcal" |
| | 72 | /> |
| | 73 | <list_entry |
| | 74 | value="8" |
| | 75 | short_description="Municipality capital" |
| | 76 | es.short_description="Capital municipal" |
| | 77 | gl.short_description="Capital municipal" |
| | 78 | /> |
| | 79 | <list_entry |
| | 80 | value="9" |
| | 81 | short_description="Submunicipal capital" |
| | 82 | es.short_description="Capital de parroquia civil o pedanía" |
| | 83 | gl.short_description="Capital de parroquia civil" |
| | 84 | /> |
| | 85 | </combo> |
| | 86 | <check |
| | 87 | key="maritime" |
| | 88 | text="Maritime" |
| | 89 | es.text="Marítima" |
| | 90 | gl.text="Marítima" |
| | 91 | /> |
| | 92 | <text |
| | 93 | key="population" |
| | 94 | text="Population" |
| | 95 | es.text="Población" |
| | 96 | gl.text="Poboación" |
| | 97 | /> |
| | 98 | <text |
| | 99 | key="population:date" |
| | 100 | text="Population census year" |
| | 101 | es.text="Año del censo de población" |
| | 102 | gl.text="Ano do censo de poboación" |
| | 103 | /> |
| | 104 | <text |
| | 105 | key="source:population" |
| | 106 | text="Population census source" |
| | 107 | es.text="Fuente del censo de población" |
| | 108 | gl.text="Fonte do censo de poboación" |
| | 109 | /> |
| | 110 | <text |
| | 111 | key="ref" |
| | 112 | text="INE code" |
| | 113 | es.text="Código INE" |
| | 114 | gl.text="Código INE" |
| | 115 | /> |
| | 116 | <text |
| | 117 | key="wikipedia" |
| | 118 | text="Wikipedia" |
| | 119 | /> |
| | 120 | <text |
| | 121 | key="wikidata" |
| | 122 | text="Wikidata" |
| | 123 | /> |
| | 124 | <text |
| | 125 | key="website" |
| | 126 | text="Website" |
| | 127 | es.text="Página web" |
| | 128 | gl.text="Páxina web" |
| | 129 | /> |
| | 130 | <text |
| | 131 | key="source" |
| | 132 | text="Source" |
| | 133 | es.text="Fuente" |
| | 134 | gl.text="Fonte" |
| | 135 | /> |
| | 136 | </chunk> |
| | 137 | <chunk id="territories"> |
| | 138 | <text |
| | 139 | key="name" |
| | 140 | text="Name" |
| | 141 | es.text="Nombre" |
| | 142 | gl.text="Nome" |
| | 143 | /> |
| | 144 | <check |
| | 145 | key="maritime" |
| | 146 | text="Maritime" |
| | 147 | es.text="Marítima" |
| | 148 | gl.text="Marítima" |
| | 149 | /> |
| | 150 | <text |
| | 151 | key="population" |
| | 152 | text="Population" |
| | 153 | es.text="Población" |
| | 154 | gl.text="Poboación" |
| | 155 | /> |
| | 156 | <text |
| | 157 | key="population:date" |
| | 158 | text="Population census year" |
| | 159 | es.text="Año del censo de población" |
| | 160 | gl.text="Ano do censo de poboación" |
| | 161 | /> |
| | 162 | <text |
| | 163 | key="source:population" |
| | 164 | text="Population census source" |
| | 165 | es.text="Fuente del censo de población" |
| | 166 | gl.text="Fonte do censo de poboación" |
| | 167 | /> |
| | 168 | <text |
| | 169 | key="ref" |
| | 170 | text="INE code" |
| | 171 | es.text="Código INE" |
| | 172 | gl.text="Código INE" |
| | 173 | /> |
| | 174 | <text |
| | 175 | key="wikipedia" |
| | 176 | text="Wikipedia" |
| | 177 | /> |
| | 178 | <text |
| | 179 | key="wikidata" |
| | 180 | text="Wikidata" |
| | 181 | /> |
| | 182 | <text |
| | 183 | key="website" |
| | 184 | text="Website" |
| | 185 | es.text="Página web" |
| | 186 | gl.text="Páxina web" |
| | 187 | /> |
| | 188 | <text |
| | 189 | key="source" |
| | 190 | text="Source" |
| | 191 | es.text="Fuente" |
| | 192 | gl.text="Fonte" |
| | 193 | /> |
| | 194 | </chunk> |
| | 195 | <chunk id="sub_city"> |
| | 196 | <text |
| | 197 | key="name" |
| | 198 | text="Name" |
| | 199 | es.text="Nombre" |
| | 200 | gl.text="Nome" |
| | 201 | /> |
| | 202 | <check |
| | 203 | key="maritime" |
| | 204 | text="Maritime" |
| | 205 | es.text="Marítima" |
| | 206 | gl.text="Marítima" |
| | 207 | /> |
| | 208 | <text |
| | 209 | key="population" |
| | 210 | text="Population" |
| | 211 | es.text="Población" |
| | 212 | gl.text="Poboación" |
| | 213 | /> |
| | 214 | <text |
| | 215 | key="population:date" |
| | 216 | text="Population census year" |
| | 217 | es.text="Año del censo de población" |
| | 218 | gl.text="Ano do censo de poboación" |
| | 219 | /> |
| | 220 | <text |
| | 221 | key="source:population" |
| | 222 | text="Population census source" |
| | 223 | es.text="Fuente del censo de población" |
| | 224 | gl.text="Fonte do censo de poboación" |
| | 225 | /> |
| | 226 | <text |
| | 227 | key="ref" |
| | 228 | text="INE code" |
| | 229 | es.text="Código INE" |
| | 230 | gl.text="Código INE" |
| | 231 | /> |
| | 232 | <text |
| | 233 | key="wikipedia" |
| | 234 | text="Wikipedia" |
| | 235 | /> |
| | 236 | <text |
| | 237 | key="wikidata" |
| | 238 | text="Wikidata" |
| | 239 | /> |
| | 240 | <text |
| | 241 | key="website" |
| | 242 | text="Website" |
| | 243 | es.text="Página web" |
| | 244 | gl.text="Páxina web" |
| | 245 | /> |
| | 246 | <text |
| | 247 | key="source" |
| | 248 | text="Source" |
| | 249 | es.text="Fuente" |
| | 250 | gl.text="Fonte" |
| | 251 | /> |
| | 252 | </chunk> |
| | 253 | <!-- Groups --> |
| | 254 | <group name="Places_ES" icon="city.png"> |
| | 255 | <item |
| | 256 | name="Country" |
| | 257 | es.name="País" |
| | 258 | gl.name="País" |
| | 259 | icon="territory02.png" |
| | 260 | type="node,closedway" |
| | 261 | preset_name_label="true" |
| | 262 | > |
| | 263 | <link wiki="Tag:place=country" /> |
| | 264 | <space /> |
| | 265 | <key key="place" value="country" /> |
| | 266 | <key key="admin_level" value="2" /> |
| | 267 | <reference ref="territories" /> |
| | 268 | </item> <!-- Country --> |
| | 269 | <item |
| | 270 | name="State" |
| | 271 | es.name="Comunidad autónoma" |
| | 272 | gl.name="Comunidade autónoma" |
| | 273 | icon="territory04.png" |
| | 274 | name_context="place" |
| | 275 | type="node,closedway" |
| | 276 | preset_name_label="true" |
| | 277 | > |
| | 278 | <link wiki="Tag:place=state" /> |
| | 279 | <space /> |
| | 280 | <key key="place" value="state" /> |
| | 281 | <key key="admin_level" value="4" /> |
| | 282 | <reference ref="territories" /> |
| | 283 | </item> <!-- State --> |
| | 284 | <item |
| | 285 | name="Province" |
| | 286 | es.name="Provincia" |
| | 287 | gl.name="Provincia" |
| | 288 | icon="territory06.png" |
| | 289 | name_context="place" |
| | 290 | type="node,closedway" |
| | 291 | preset_name_label="true" |
| | 292 | > |
| | 293 | <link wiki="Tag:place=province" /> |
| | 294 | <space /> |
| | 295 | <key key="place" value="province" /> |
| | 296 | <key key="admin_level" value="6" /> |
| | 297 | <reference ref="territories" /> |
| | 298 | </item> <!-- Province --> |
| | 299 | <item |
| | 300 | name="County" |
| | 301 | es.name="Comarca" |
| | 302 | gl.name="Comarca" |
| | 303 | icon="territory07.png" |
| | 304 | name_context="place" |
| | 305 | type="node,closedway" |
| | 306 | preset_name_label="true" |
| | 307 | > |
| | 308 | <link wiki="Tag:place=county" /> |
| | 309 | <space /> |
| | 310 | <key key="place" value="county" /> |
| | 311 | <key key="admin_level" value="7" /> |
| | 312 | <reference ref="territories" /> |
| | 313 | </item> <!-- County --> |
| | 314 | <item |
| | 315 | name="Municipality" |
| | 316 | es.name="Municipio" |
| | 317 | gl.name="Municipio" |
| | 318 | icon="territory08.png" |
| | 319 | name_context="place" |
| | 320 | type="node,closedway" |
| | 321 | preset_name_label="true" |
| | 322 | > |
| | 323 | <link wiki="Tag:place=municipality" /> |
| | 324 | <space /> |
| | 325 | <key key="place" value="municipality" /> |
| | 326 | <key key="admin_level" value="8" /> |
| | 327 | <reference ref="territories" /> |
| | 328 | </item> <!-- Municipality --> |
| | 329 | <item |
| | 330 | name="Civil Parish" |
| | 331 | es.name="Parroquia civil" |
| | 332 | gl.name="Parroquia civil" |
| | 333 | icon="territory09.png" |
| | 334 | name_context="place" |
| | 335 | type="node,closedway" |
| | 336 | preset_name_label="true" |
| | 337 | > |
| | 338 | <link wiki="Tag:place=civil_parish" /> |
| | 339 | <space /> |
| | 340 | <key key="place" value="civil_parish" /> |
| | 341 | <key key="admin_level" value="9" /> |
| | 342 | <reference ref="territories" /> |
| | 343 | </item> <!-- Civil Parish --> |
| | 344 | <item |
| | 345 | name="Ward" |
| | 346 | es.name="Entidad de población" |
| | 347 | gl.name="Entidade de poboación" |
| | 348 | short_description="Territory of a Ward" |
| | 349 | es.short_description="Territorio de una entidad de población" |
| | 350 | gl.short_description="Territorio dunha entidade de poboación" |
| | 351 | icon="territory10.png" |
| | 352 | name_context="place" |
| | 353 | type="node,closedway" |
| | 354 | preset_name_label="true" |
| | 355 | > |
| | 356 | <link wiki="Tag:place=ward" /> |
| | 357 | <space /> |
| | 358 | <key key="place" value="ward" /> |
| | 359 | <key key="admin_level" value="10" /> |
| | 360 | <reference ref="territories" /> |
| | 361 | </item> <!-- Ward --> |
| | 362 | <separator/> |
| | 363 | <item |
| | 364 | name="City" |
| | 365 | es.name="Ciudad" |
| | 366 | gl.name="Cidade" |
| | 367 | icon="city.png" |
| | 368 | type="node,closedway" |
| | 369 | preset_name_label="true" |
| | 370 | > |
| | 371 | <link wiki="Tag:place=city" /> |
| | 372 | <space /> |
| | 373 | <key key="place" value="city" /> |
| | 374 | <key key="admin_level" value="10" /> |
| | 375 | <reference ref="entities" /> |
| | 376 | </item> <!-- City --> |
| | 377 | <item |
| | 378 | name="Town" |
| | 379 | es.name="Villa" |
| | 380 | gl.name="Vila grande" |
| | 381 | icon="town.png" |
| | 382 | type="node,closedway" |
| | 383 | preset_name_label="true" |
| | 384 | > |
| | 385 | <link wiki="Tag:place=town" /> |
| | 386 | <space /> |
| | 387 | <key key="place" value="town" /> |
| | 388 | <key key="admin_level" value="10" /> |
| | 389 | <reference ref="entities" /> |
| | 390 | </item> <!-- Town --> |
| | 391 | <item |
| | 392 | name="Village" |
| | 393 | es.name="Pueblo" |
| | 394 | gl.name="Vila pequena" |
| | 395 | icon="village.png" |
| | 396 | type="node,closedway" |
| | 397 | preset_name_label="true" |
| | 398 | > |
| | 399 | <link wiki="Tag:place=village" /> |
| | 400 | <space /> |
| | 401 | <key key="place" value="village" /> |
| | 402 | <key key="admin_level" value="10" /> |
| | 403 | <reference ref="entities" /> |
| | 404 | </item> <!-- Village --> |
| | 405 | <item |
| | 406 | name="Hamlet" |
| | 407 | es.name="Aldea" |
| | 408 | gl.name="Aldea" |
| | 409 | icon="hamlet.png" |
| | 410 | type="node,closedway" |
| | 411 | preset_name_label="true" |
| | 412 | > |
| | 413 | <link wiki="Tag:place=hamlet" /> |
| | 414 | <space /> |
| | 415 | <key key="place" value="hamlet" /> |
| | 416 | <key key="admin_level" value="10" /> |
| | 417 | <reference ref="entities" /> |
| | 418 | </item> <!-- Hamlet --> |
| | 419 | <item |
| | 420 | name="Allotments" |
| | 421 | es.name="Urbanización" |
| | 422 | gl.name="Urbanización" |
| | 423 | icon="allotments.png" |
| | 424 | type="node,closedway" |
| | 425 | preset_name_label="true" |
| | 426 | > |
| | 427 | <link wiki="Tag:place=allotments" /> |
| | 428 | <space /> |
| | 429 | <key key="place" value="allotments" /> |
| | 430 | <key key="admin_level" value="10" /> |
| | 431 | <reference ref="entities" /> |
| | 432 | </item> <!-- Allotments --> |
| | 433 | <item |
| | 434 | name="Isolated Dwelling" |
| | 435 | es.name="Viviendas aisladas" |
| | 436 | gl.name="Vivendas illadas" |
| | 437 | icon="isolated_dwelling.png" |
| | 438 | type="node,closedway" |
| | 439 | preset_name_label="true" |
| | 440 | > |
| | 441 | <link wiki="Tag:place=isolated_dwelling" /> |
| | 442 | <space /> |
| | 443 | <key key="place" value="isolated_dwelling" /> |
| | 444 | <key key="admin_level" value="10" /> |
| | 445 | <reference ref="entities" /> |
| | 446 | </item> <!-- Isolated Dwelling --> |
| | 447 | <separator/> |
| | 448 | <item |
| | 449 | name="Borough" |
| | 450 | es.name="Distrito urbano" |
| | 451 | gl.name="Distrito urbano" |
| | 452 | icon="borough.png" |
| | 453 | type="node,closedway" |
| | 454 | preset_name_label="true" |
| | 455 | > |
| | 456 | <link wiki="Tag:place=borough" /> |
| | 457 | <space /> |
| | 458 | <key key="place" value="borough" /> |
| | 459 | <key key="admin_level" value="11" /> |
| | 460 | <reference ref="sub_city" /> |
| | 461 | </item> <!-- Borough --> |
| | 462 | <item |
| | 463 | name="Suburb" |
| | 464 | es.name="Barrio" |
| | 465 | gl.name="Barrio" |
| | 466 | icon="suburb.png" |
| | 467 | type="node,closedway" |
| | 468 | preset_name_label="true" |
| | 469 | > |
| | 470 | <link wiki="Tag:place=suburb" /> |
| | 471 | <space /> |
| | 472 | <key key="place" value="suburb" /> |
| | 473 | <key key="admin_level" value="12" /> |
| | 474 | <reference ref="sub_city" /> |
| | 475 | </item> <!-- Suburb --> |
| | 476 | <item |
| | 477 | name="Quarter" |
| | 478 | es.name="Cuarto" |
| | 479 | gl.name="Cuarto" |
| | 480 | icon="quarter.png" |
| | 481 | type="node,closedway" |
| | 482 | preset_name_label="true" |
| | 483 | > |
| | 484 | <link wiki="Tag:place=quarter" /> |
| | 485 | <space /> |
| | 486 | <key key="place" value="quarter" /> |
| | 487 | <key key="admin_level" value="13" /> |
| | 488 | <reference ref="sub_city" /> |
| | 489 | </item> <!-- Quarter --> |
| | 490 | <item |
| | 491 | name="Neighbourhood" |
| | 492 | es.name="Vecindario" |
| | 493 | gl.name="Vecindario" |
| | 494 | icon="neighbourhood.png" |
| | 495 | type="node,closedway" |
| | 496 | preset_name_label="true" |
| | 497 | > |
| | 498 | <link wiki="Tag:place=neighbourhood" /> |
| | 499 | <space /> |
| | 500 | <key key="place" value="neighbourhood" /> |
| | 501 | <key key="admin_level" value="14" /> |
| | 502 | <reference ref="sub_city" /> |
| | 503 | </item> <!-- Neighbourhood --> |
| | 504 | <item |
| | 505 | name="City Block" |
| | 506 | es.name="Manzana" |
| | 507 | gl.name="Mazá" |
| | 508 | icon="city_block.png" |
| | 509 | type="node,closedway" |
| | 510 | preset_name_label="true" |
| | 511 | > |
| | 512 | <link wiki="Tag:place=city_block" /> |
| | 513 | <space /> |
| | 514 | <key key="place" value="city_block" /> |
| | 515 | <key key="admin_level" value="15" /> |
| | 516 | <reference ref="sub_city" /> |
| | 517 | </item> <!-- City Block --> |
| | 518 | <item |
| | 519 | name="Plot" |
| | 520 | es.name="Parcela" |
| | 521 | gl.name="Parcela" |
| | 522 | icon="plot.png" |
| | 523 | type="node,closedway" |
| | 524 | preset_name_label="true" |
| | 525 | > |
| | 526 | <link wiki="Tag:place=plot" /> |
| | 527 | <space /> |
| | 528 | <key key="place" value="plot" /> |
| | 529 | <key key="admin_level" value="16" /> |
| | 530 | <reference ref="sub_city" /> |
| | 531 | </item> <!-- Plot --> |
| | 532 | </group> <!-- Places_ES --> |
| | 533 | </presets> |
| | 534 | }}} |