<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "All cities without cities districts, etc."]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "All cities without cities districts, etc."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>All cities without cities districts, etc.</title>
				<description><![CDATA[ Hello,

We have the following problem: We need to assign certain objects to cities using Geonames database. Assignment is based on distance between object and city - the closest city is assigned to object. Recently we were using cities1000 - subset of Geonames. It worked perfectly but had one disadvantage - a lot of smaller cities/towns/villages were missing. To solve the problem we decided to copy all objects from Geonames matching the following condition (based on fclass and fcode taken from cities1000 database):
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>WHERE gn.fclass="P" AND gn.fcode IN &#40;'PPL','PPLA','PPLA2','PPLA3','PPLA4','PPLC','PPLF','PPLG','PPLL','PPLQ','PPLR','PPLS','PPLW','PPLX'&#41;</pre>
		</div>

Unfortunately it did not work well. There were a lot of duplicated locations (e.g. London as city, as capital, etc.). Additionally, it contained districts of cities. After assigning our objects to the cities we end up without London at all but we had 'City of Westminster' instead (small part of London) which is incorrect.

Is there any reliable compilation of all cities similar to cities1000? Or perhaps there is some other way to create such a subset?

Thanks!
Jacek
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3792.page#11319</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3792.page#11319</link>
				<pubDate><![CDATA[Fri, 9 Mar 2012 06:44:08]]> GMT</pubDate>
				<author><![CDATA[ jacek.francuz]]></author>
			</item>
			<item>
				<title>Re:All cities without cities districts, etc.</title>
				<description><![CDATA[ We have exactly same issue. Trying to find a reliable way to finding all cities from geoname.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3792.page#11346</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3792.page#11346</link>
				<pubDate><![CDATA[Tue, 20 Mar 2012 22:39:12]]> GMT</pubDate>
				<author><![CDATA[ sabv]]></author>
			</item>
	</channel>
</rss>