ak jsem si s tim na chvili zacal hrat a nakonec se osvedcil nejvic
tento turbopass kod:
/*
This has been generated by the overpass-turbo wizard.
*/
[out:json][timeout:60];
// gather results
(relation["kct_yellow"]({{bbox}})->.a; way(r.a)["kct_yellow"] -> .b;
.b > -> .c);
/*added by auto repair*/
(.b;.b >;)->.b;
/*end of auto repair*/
.b out body;
/*added by auto repair*/
(.c;.c >;)->.c;
/*end of auto repair*/
.c out body;
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out skel qt;
pro +- moravu jsem postupne poopravoval. Nicmene to nezahrnuje cesty s
tagy kct_barva ktere nejsou v zadne relaci, tam je pak asi nejlepsi co
jsem dal:
[out:json][timeout:25];
// gather results
(
// query part for: “kct_red=*”
node["kct_red"]({{bbox}});
way["kct_red"]({{bbox}});
node["kct_blue"]({{bbox}});
way["kct_blue"]({{bbox}});
node["kct_green"]({{bbox}});
way["kct_green"]({{bbox}});
node["kct_yellow"]({{bbox}});
way["kct_yellow"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
Toz happy mapping :-)
Dne 21. října 2015 23:41 Petr Holub <[email protected]> napsal(a):
>> Pokud bys to chtěl v rámci Turba i vidět, tak třeba přidat extrakci
>> uzlů:
>> (relation["kct_red"]({{bbox}}); way(r)["kct_red"]; >;);
>
> Ještě případně jak tam nemít ty původní relace... trochu jsem válčil
> s plněním proměnné _, takže oklikou přes proměnné a, b, c ;-) (c je
> tam jen kvuli vizualizaci v Turbu
>
> ----------------------------------------------------------------
> (relation["kct_red"="major"]({{bbox}})->.a; way(r.a)["kct_red"="yes"] -> .b;
> .b > -> .c);
> .b out body;
> .c out body;
> ----------------------------------------------------------------
>
> Ale třeba bude mít někdo víc zkušeností a elegantnější řešení...
>
> Petr
>
>
>
> _______________________________________________
> Talk-cz mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/talk-cz
_______________________________________________
Talk-cz mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk-cz