number of errors=14
number of warnings=0
Group=chkGrpUnlocode
select cc,countrycode,code,subdiv,function,unlocode.name,geoname.geonameid,geoname.name,geoname.featurecode,unlocode.longlat<->geoname.longlat,'http://www.geonames.org/maps/google_' || unlocode.longlat[1] || '_' || unlocode.longlat[0] || '.html' as un from UNLOCODE20241 as unlocode,geoname where geoname.geonameid=unlocode.geonameid and unlocode.longlat<->geoname.longlat >0.2 and unlocode.longlat is not null and geoname.name <> unlocode.name and geoname.ansiname<>unlocode.name and not exists (select 1 from alternatename where unlocode.geonameid=alternatename.geonameid and unlocode.name<>alternatename.name) and not exists (select 1 from unlocode_manualmatch where unlocode_manualmatch.code=unlocode.code and unlocode_manualmatch.cc=unlocode.cc and unlocode.geonameid = unlocode_manualmatch.geonameid)
cc countrycode code subdiv function name geonameid name featurecode ?column? un BI BI MWM MU --3----- Mwaro 424340 Mwaro Ngundu PPLL 0.29653885261650054 http://www.geonames.org/maps/google_-3.5166666666666666_29.7.html BO BO SRJ B --34---- San Borja 3908397 Pascana San Borja PPL 0.7861651226046668 http://www.geonames.org/maps/google_-14.816666666666666_-66.85.html CZ CZ NOE 63 --3----- Nová Ves 3069555 Nová Ves u Dolních Kralovic PPL 0.8859189579871903 http://www.geonames.org/maps/google_49.15_15.883333333333333.html EE EE JOS 45 1------- Narva Linnasadam 11919986 Alajõe Joesadam PRT 0.8529356994391648 http://www.geonames.org/maps/google_59.38333333333333_28.2.html ES ES GAU LU --3----- Golada 3121353 Agolada PPL 0.924824983442814 http://www.geonames.org/maps/google_42.85_-7.1.html FR FR 7VI 36 --3----- Villiers 3003923 Le Grand Villiers PPL 0.7271608506171261 http://www.geonames.org/maps/google_46.88333333333333_1.1833333333333333.html IN IN BAC HR -23--6-- Bari 10318588 Mohan Bāri PPL 0.9028093092537446 http://www.geonames.org/maps/google_29.116666666666667_77.03333333333333.html LK LK MHW null ---4---- Mahaweli 11992150 Mahaweli Pedesa ADM4 0.5683200883012923 http://www.geonames.org/maps/google_8.45_81.21666666666667.html MA MA SRH JDI --3----- Sidi Rahal 10911467 Oulad Sidi Rahal PPL 0.7661337366054295 http://www.geonames.org/maps/google_32.5_-8.35.html PA PA BHP 10 --3----- Bahía Honda 3714529 Bahía Honda Arriba PPL 0.822362567676536 http://www.geonames.org/maps/google_7.75_-81.51666666666667.html PA PA ELA 10 -----6-- El Alto 3711507 El Alto de las Margaritas PPL 0.7905809539664146 http://www.geonames.org/maps/google_8.516666666666667_-81.05.html PA PA EPO 10 --3----- El Prado 11979090 Urbanizacion El Prado PPL 0.5463265906132571 http://www.geonames.org/maps/google_8.233333333333333_-81.5.html PA PA PRR 10 --3----- El Potrero 3710095 El Potrero de La Pita PPL 0.5823811596359293 http://www.geonames.org/maps/google_8.366666666666667_-80.81666666666666.html PY PY INF 19 -------B Mayor Infante Rivarola 11850732 Zona Mayor Infante Rivarola ADM3 0.24481295255548066 http://www.geonames.org/maps/google_-21.666666666666668_-62.38333333333333.html