| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 13/11/2008 02:18:31
|
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 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 13/11/2008 07:42:25
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 14/11/2008 03:09:55
|
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 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 14/11/2008 07:37:48
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 25/11/2008 17:50:48
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 25/11/2008 21:56:57
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
You are right, it was not properly deployed.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 26/11/2008 15:00:51
|
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
|
|
|
 |
|
|