GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Errors in countryInfo.txt  XML
Forum Index -> General
Author Message
broesch



Joined: 13/11/2008 02:09:57
Messages: 2
Offline

I have found two inconsistencies in countryInfo.txt

Line 106, Row 16 list the language do, no such Iso exists, I think it should be fo (faroese), makes sense for Faroe Islands

Line 229, Row 16 lists language se and sme, both stand for swedish, its the only time two codes are given for one language, normally when there is a Iso1 code no other is given.

I just thought I let you know.

www.gentlepc.com
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

you are right, this will be fixed (se and sme stand for "Northern Sami", "sv" stands for Swedish).

Marc

[WWW]
broesch



Joined: 13/11/2008 02:09:57
Messages: 2
Offline

my bad,
but my point was that they both stand for the same language.
Nice that they will be fixed cos they cause trouble with one of my import scripts.

Thanks

www.gentlepc.com
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Jens has found two more errors (name of Swedish currency and a column shift for United States Minor Outlying Islands).
All these fixes will be available with the next dump.

Cheers

Marc

[WWW]
david masclet



Joined: 26/11/2007 11:49:58
Messages: 67
Offline

hi Marc

I can't see the changes and neither those : http://forum.geonames.org/gforum/posts/list/910.page. are those errors already fixed ?

Thanks in advance
David
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

You are right, it was not properly deployed.

Marc

[WWW]
bwakkie



Joined: 25/11/2008 12:49:52
Messages: 7
Offline

First the countryInfo table has changed.

in PostgreSQL I do the following:
Code:
 CREATE TABLE countryinfo (
 	iso_alpha2 char(2),
 	iso_alpha3 char(3),
 	iso_numeric integer,
 	fips_code character varying(3),
 	name character varying(200),
 	capital character varying(200),
 	areainsqkm double precision,
 	population integer,
 	continent char(2),
 	tld character varying(200),
 	currency char(3),
 	curranceName char(10),
 	phone char(10),
 	postal char(60),
 	postalRegex char(250),
 	languages char(130),
 	equivalentFipsCode integer,
 	neighbours char(50)
 );
 

Code:
 grep -v '^#' countryInfo.txt |sed 's/\t$//g'| tail -n +2 > countryInfo.txt.tmp;
 


...before populating the countryinfo table in psql ...
Code:
 copy countryinfo (iso_alpha2,iso_alpha3,iso_numeric,fips_code,name,capital,areaInSqKm,population,continent,tld,currency,curranceName,phone,postal,postalRegex,languages,equivalentFipsCode,neighbours) from '${WORKPATH}/${TMPPATH}/countryInfo.txt.tmp' null as '';
 


grep removes all comments
sed removes the tab at the end of each line
and tail removes the column names

see also my importing script here (that will be updates shortly ):
http://forum.geonames.org/gforum/posts/list/926.page

Cheers,
Bastiaan

 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team