<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Ahoj, </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">a nebylo by lepší použít pro sales_point taky relaci? Vypadalo by to pak asi takhle:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Relace turistické známky)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">tagy:<br />  type=checkpoint<br />  checkpoint=tourism<br />  checkpoint:type=tourist_stamp<br />  name=3. Karlova Studánka</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  checkpoint:category:cz=Jeseníky</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  ref=<neco></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">členové:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  attraction -> <atrakce které se známka týká (pokud není známo, tak ten bod s</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">                             fixme vytvořený při importu><br />  sales_point -> r1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  sales_point -> r2</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  sales_point -> r3</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  sales_point -> r4</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  sales_point -> r5</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  sales_point -> r6</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />Relace r1)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">tagy:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  type=tourist_stamp:sales_point</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  name=Infocentrum Impuls, 793 24 Karlova Studánka 59<br />  web=http://www.k.studanka.cz</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">členové:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  (objekt kde se to prodává)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">atd.<br /></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Jan Kouba</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Dne Čt 30. května 2013 14:45:07, Marián Kyral napsal(a):<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">---------- Původní zpráva ----------<br />Od: Milan Vancura <milan@ucw.cz><br />Datum: 30. 5. 2013<br />Předmět: Re: [Talk-cz] Turistické známky</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:80px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wed 29-05-13 23:17:22, Marián Kyral wrote:<br />> Relace)<br />> type=checkpoint<br />> checkpoint=tourism<br />> checkpoint:type=tourist_stamp<br />> name=3. Karlova Studánka<br />> checkpoint:category:cz=Jeseníky<br />> checkpoint:sales_point:1=Infocentrum Impuls, 793 24 Karlova Studánka 59<br />> checkpoint:sales_point:web:1=http://www.k.studanka.cz<br />> checkpoint:sales_point:2=Občerstvení U vodopádu, Karlova Studánka<br />> checkpoint:sales_point:web:2=http://www.kstudanka.cz<br />> checkpoint:sales_point:3=Lázeňský dům Libuše - recepce, Karlova Studánka<br />> checkpoint:sales_point:web:3=http://k.studanka.cz<br />> checkpoint:sales_point:4=Cukrárna Roman Korytar<br />> checkpoint:sales_point:5=Minimarket Roja, Karlova Studánka<br />> checkpoint:sales_point:6=Geologická sbírka Jeseníků<br />> checkpoint:sales_point:web:6=http://www.ejeseniky.com<br /><br />> Mám dotaz: Nepřeháním to s těmi dvojtečkami? Není na to nějaké omezení? <br />> Přiznám se, že jsem moc nehledal, ale JOSM neprotestuje.<br /><br />Zdravím,<br /><br />mně se to s těmi dvojtečkami nelíbí. Vždyť je to relace a relace je tu od toho,<br />aby měla členy, ne? Tak proč to nahrazovat spoustou dvojtečkovaných atributů?<br />To bych chápal maximálně jako FIXME. A ve výsledku by objekty (výše tedy<br />Infocentrum Impuls, Občerstvení U vodopádu, Lázeňský dům Libuše...) měly být<br />členem relace, s typem "sales_point".<br /><br />Milan Vančura<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">No to mělo. Ovšem nějak tam ta data potřebuji napoprvé dostat abych následně mohl přiřadit (vytvořit) další členy relace. A stejně, pokud všechny tyto body převedu na skutečné objekty a zařadím je do relace, potřebuji je nějak identifikovat s ohledem na předpokládané aktualizace. <br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Prodejní místa se můžou změnit, website se může změnit. Potřeboval bych nějak identifikovat nově přidaná nebo smazaná prodejní místa. Pokud budu mít klíč <span style=" font-family:'courier new';">checkpoint:sales_point:1</span> tak není problém zjistit, jestli se něco změnilo, nebo ne. Ovšem pokud budu mít x členů relace s rolí "<span style=" font-family:'courier new';">sales_point</span>" tak nevím jak poznám, který člen odpovídá "Infocentrum Impuls, 793 24 Karlova Studánka 59". No a pokud se infocentrum přestěhuje a bude tam nově třeba "... Karlova Studánka 77". tak už to vůbec nepoznám.</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Muselo by to být nějak zakódováno přímo u daného prodejního místa, třeba <span style=" font-family:'courier new';">ref=TSCZ:3:SP1</span>, ale to by zase mohlo kolidovat s už existujícím ref. Stejně pak ale musím mít možnost poznat, že se třeba změnila adresa. A to buď tak, že tam bude celý řetězec ("Infocentrum Impuls, 793 24 Karlova Studánka 59"), nebo nějaký hash (třeba md5) či kontrolní číslici. A totéž musí být i pro web adresu (pokud existuje). To ale znamená, že jak ref, tak i hash pro jméno a website musí být přiřazeno danému objektu. A musí to být přiřazeno ručně -> práce navíc a dají se v tom udělat chyby. A třeba spočítat hash asi každý neumí. Navíc se pak kdokoli může rozhodnout, že ty podivné tagy se mu nelíbí a smaže je -> update skript to bude hlásit jako nový objekt.<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Nějaký nápad?<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Marián<br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:80px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />_______________________________________________<br />Talk-cz mailing list<br />Talk-cz@openstreetmap.org<br />http://lists.openstreetmap.org/listinfo/talk-cz</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p></body></html>