<div dir="ltr"><div>Hei<br>Chattet med <span class="" id="text"><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia på </font></span><span class="" style="color:rgb(0,0,0)">irc #osm-nominatim</span><br>
<br>Han/hun gjorde noen manuelle endringer og jeg endret Svalbard til &#39;place=region&#39; (det er jo ikke &#39;place=country&#39;!)<br></div>Ser ut til at søkene gir rett svar nå.<br><div><div><br><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Anyone here that can have a look at a place search that gives the wrong country in return?</font><br>
</div><div class=""><font color="#000080">&lt;</font><font color="#ff6600">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> CGI127: sure</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Try searching for &#39;Oslo&#39;, the capital of Norway. Shows up as being in &quot;Svalbard and Jan Mayen&quot;.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Same goes for most places in the region.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Try &#39;Røyken&#39;, &#39;Drammen&#39; etc.</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Ah, country trouble again. Let me check what&#39;s going on in the DB.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Please. Thanks.</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Looks like Svalbard extended into Norway at some point.</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> It seems to have been fixed in the meantime. I&#39;ll see if I can update the stale data.</font><br>
</div><div class=""><b>*</b> lonvia wonders if it is even correct that we have listed Svalbard as a country in Nominatim.<br></div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Aha, there is the culprit: <a href="http://www.openstreetmap.org/browse/node/269195852" target="cgiirc39329" class="">http://www.openstreetmap.org/browse/node/269195852</a></font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Okay? I don&#39;t see how that node is a prblem?</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> It is mapped as place=country which is clearly wrong. Somehow it ended up being assigned to twons in Norway.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> No, Svalbard is not a separate country.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">
 Wiki: &quot;The Svalbard Treaty of 1920 established full Norwegian 
sovereignty over the archipelago. The islands are, unlike the Norwegian 
Antarctic Territory, a part of the Kingdom of Norway and not a 
dependency. &quot;</font><br></div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Jep. The Svalbard relation is correctly mapped as admin-Level=4. So the node should get a place=state.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> (Exept that Norway does not have states...)</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Perhaps the &#39;Norway&#39; relation (<a href="http://www.openstreetmap.org/browse/relation/2978650%29" target="cgiirc16583" class="">http://www.openstreetmap.org/browse/relation/2978650)</a> should have only the various &quot;part of norway&quot; relations as members?</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Hm, sounds complicated according to wikipedia. So, place=region?</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> I recommed discussing that with the locals.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> So you think changing node 269195852 to place=region should fix it?</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> (Ready top upload that change)</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> The current errors in the DB need to be fixed manually. Doing that right now. Should be finished in a few minutes or so.</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> But changing the node is a good idea, too, in the long term.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Done</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Thanks for the manual fixes! :-)</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> np</font><br>
</div><div class=""><font color="#000080">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">lonvia</font><font color="#000080">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Should be through now. Let me know if I missed some places.</font><br>
</div><div class=""><font color="#008000">&lt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000">CGI127</font><font color="#008000">&gt;</font><font style="background:none repeat scroll 0% 0% rgb(255,255,255)" color="#000000"> Looks good for now :-)</font></div>
<br><br><br><br><br></div></div></div><div class="gmail_extra"><br clear="all"><div><br clear="all"><div>Gorm E. Johnsen</div>
</div>
<br><br><div class="gmail_quote">2013/8/5 Håkon Stordahl <span dir="ltr">&lt;<a href="mailto:hakon@stordahl.org" target="_blank">hakon@stordahl.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon,  5 Aug 2013 12:27:41 +0200, Guttorm Flatabø wrote:<br>
<br>
&gt; Er det ingen som har noko ide om kva som er problemet her? Så vidt eg kan<br>
&gt; skjøna så må det enten vera noko problem med Svalbard-relasjonen, eller<br>
&gt; Nominatim.<br>
<br>
</div>Hei. Jeg forsøkte å undersøke det, men har ikke funnet ut noe særlig<br>
dessverre, så det blir mest spekulasjoner. Har dessverre i<br>
utgangspunktet heller ikke så mye peiling på hvordan Nominatim fungerer,<br>
men det som står her kan kanskje være av betydning:<br>
<br>
<a href="http://wiki.openstreetmap.org/wiki/Nominatim/FAQ#Where_have_all_the_place.2Fcity.2Fcountry_nodes_gone.3F" target="_blank">http://wiki.openstreetmap.org/wiki/Nominatim/FAQ#Where_have_all_the_place.2Fcity.2Fcountry_nodes_gone.3F</a><br>

<br>
Relasjonen med Norges grense (2978650) har ingen label slik det foreslås<br>
i punkt 1, så kanskje det bør legges inn en slik, men det vil overraske<br>
meg litt om det er alt som skal til. Jeg oppdaget tilfeldigvis også<br>
dette innlegget på OSM-forumet:<br>
<br>
<a href="http://forum.openstreetmap.org/viewtopic.php?pid=350916" target="_blank">http://forum.openstreetmap.org/viewtopic.php?pid=350916</a><br>
<br>
Den nevner at det har blitt gjort endringer i grenserelasjonen i det<br>
siste, så problemet kan muligens være forårsaket av disse endringen men<br>
jeg er usikker. (Jeg har i mellomtiden selv lagt til Jan Mayens grense<br>
til denne relasjonen, men ikke som et forsøk på å løse dette problemet.)<br>
<br>
Jeg kan heller ikke se noen opplagt feil i Svalbard-relasjonen og kan<br>
dessuten ikke se at navnet &quot;Svalbard and Jan Mayen&quot; ligger i noen<br>
relevant navnetag (name eller name:no f.eks.) i OpenStreetMap, men<br>
kanskje det kommer fra denne tabellen i Nominatim:<br>
<br>
<a href="https://github.com/twain47/Nominatim/blob/master/data/country_name.sql" target="_blank">https://github.com/twain47/Nominatim/blob/master/data/country_name.sql</a><br>
<br>
Det ser også ut til at grensene til forskjellige land ligger i en egen<br>
tabell:<br>
<br>
<a href="https://github.com/twain47/Nominatim/blob/master/data/country_osm_grid.sql" target="_blank">https://github.com/twain47/Nominatim/blob/master/data/country_osm_grid.sql</a><br>
<br>
(Fila er for stor til å vises i en nettleser.) Det kan være en feil i<br>
denne, men har ikke fått undersøkt det og vet ikke hvordan disse<br>
tabellene oppdateres. Tipper altså det er en feil i Nominatim, men ikke<br>
sikker.<br>
<div class="im"><br>
&gt; 1. august 2013 kl. 23:21 skrev Bjørn Kvisli &lt;<a href="mailto:bjorn.kvisli@gmail.com">bjorn.kvisli@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;&gt; Nei, det gjelder ikke alle, Ikke Hyggen f.eks. Er det forresten gjort en<br>
&gt;&gt; import av Kartverkets data? Jeg har vært på ferie og ikke fulgt så godt med<br>
<br>
</div>Jeg tror heller ikke dette problemet har noe med Kartverkets data å<br>
gjøre. Jeg får f.eks. også tilsvarende resultat når jeg søker på &quot;Oslo&quot;,<br>
og den stedsnoden har ikke blitt berørt av noen slik import.<br>
<br>
Hilsen Håkon.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
kart mailing list<br>
<a href="mailto:kart@nuug.no">kart@nuug.no</a><br>
<a href="http://lists.nuug.no/mailman/listinfo/kart" target="_blank">http://lists.nuug.no/mailman/listinfo/kart</a><br>
</div></div></blockquote></div><br></div>