<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Easiest way to get subset of country information with alternate names into MySQL"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Easiest way to get subset of country information with alternate names into MySQL"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Easiest way to get subset of country information with alternate names into MySQL</title>
				<description><![CDATA[ Importing data into MySQL.
We are only interested in a subset of the information in countryInfo.txt with the alternate names for countries. 

Either we can follow the information in this forum post: <a href='http://forum.geonames.org/gforum/posts/list/732.page' target='_new' rel="nofollow">http://forum.geonames.org/gforum/posts/list/732.page</a> and just modify the LOAD DATA INFILE statements to include only the columns we need into our Country table. Then load the full alternateNames file into the table and later delete the rows which doesn't have a corresponding geonamesid in the Country table.

Is there any plans from the geonames crew to dump a file with alternate names only for countries? Or is there a way to strip out all the entries from alternateNames.txt that don't belong to a country?

We can of course easily create a small program to parse the files exactly as we want, but that might be a waste of time.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2634.page#9530</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2634.page#9530</link>
				<pubDate><![CDATA[Wed, 6 Apr 2011 11:30:48]]> GMT</pubDate>
				<author><![CDATA[ trygvelo]]></author>
			</item>
			<item>
				<title>Re:Easiest way to get subset of country information with alternate names into MySQL</title>
				<description><![CDATA[ It is not planned to add additional convenience file as we consider it counter productive. Finding the right file would become more are more difficult if we have thousands of files with some subsets. 

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2634.page#9533</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2634.page#9533</link>
				<pubDate><![CDATA[Wed, 6 Apr 2011 12:05:20]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>