<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Errors in countryInfo.txt"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Errors in countryInfo.txt"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Errors in countryInfo.txt</title>
				<description><![CDATA[ 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.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#4951</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#4951</link>
				<pubDate><![CDATA[Thu, 13 Nov 2008 02:18:31]]> GMT</pubDate>
				<author><![CDATA[ broesch]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ you are right, this will be fixed (se and sme stand for "Northern Sami", "sv" stands for Swedish).

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#4956</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#4956</link>
				<pubDate><![CDATA[Thu, 13 Nov 2008 07:42:25]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ 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]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#4966</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#4966</link>
				<pubDate><![CDATA[Fri, 14 Nov 2008 03:09:55]]> GMT</pubDate>
				<author><![CDATA[ broesch]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ 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]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#4967</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#4967</link>
				<pubDate><![CDATA[Fri, 14 Nov 2008 07:37:48]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ 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]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#5014</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#5014</link>
				<pubDate><![CDATA[Tue, 25 Nov 2008 17:50:48]]> GMT</pubDate>
				<author><![CDATA[ david masclet]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ You are right, it was not properly deployed.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#5016</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#5016</link>
				<pubDate><![CDATA[Tue, 25 Nov 2008 21:56:57]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Errors in countryInfo.txt</title>
				<description><![CDATA[ First the countryInfo table has changed.

in PostgreSQL I do the following:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
CREATE TABLE countryinfo &#40;
	iso_alpha2 char&#40;2&#41;,
	iso_alpha3 char&#40;3&#41;,
	iso_numeric integer,
	fips_code character varying&#40;3&#41;,
	name character varying&#40;200&#41;,
	capital character varying&#40;200&#41;,
	areainsqkm double precision,
	population integer,
	continent char&#40;2&#41;,
	tld character varying&#40;200&#41;,
	currency char&#40;3&#41;,
	curranceName char&#40;10&#41;,
	phone char&#40;10&#41;,
	postal char&#40;60&#41;,
	postalRegex char&#40;250&#41;,
	languages char&#40;130&#41;,
	equivalentFipsCode integer,
	neighbours char&#40;50&#41;
&#41;;
</pre>
		</div>
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
grep -v '^#' countryInfo.txt |sed 's/\t$//g'| tail -n +2 &gt; countryInfo.txt.tmp;
</pre>
		</div>

...before populating the countryinfo table in psql ...
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
copy countryinfo &#40;iso_alpha2,iso_alpha3,iso_numeric,fips_code,name,capital,areaInSqKm,population,continent,tld,currency,curranceName,phone,postal,postalRegex,languages,equivalentFipsCode,neighbours&#41; from '${WORKPATH}/${TMPPATH}/countryInfo.txt.tmp' null as '';
</pre>
		</div>

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

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1145.page#5023</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1145.page#5023</link>
				<pubDate><![CDATA[Wed, 26 Nov 2008 15:00:51]]> GMT</pubDate>
				<author><![CDATA[ bwakkie]]></author>
			</item>
	</channel>
</rss>