<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Utility for autocreating spatialy indexed geonames in PostGIS"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Utility for autocreating spatialy indexed geonames in PostGIS"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Utility for autocreating spatialy indexed geonames in PostGIS</title>
				<description><![CDATA[ Sharing utility for automating creation of geonames in PostGIS, This utility checks timestamps/filesize, grabbing most current data (when its run), creates geometry with GiST indexes, clusters and assigns user defined owner of database.  It was designed for use with PostGIS &gt;=2.x (implying Postgres &gt;= 9.x)

Currently only grabs US postal codes but easily adapted to other country postal codes.

Used in conjunction with PostGIS 2's indexed nearest neighbor query, makes a nice location based service foundation.  For example, to find the ten closest hotels to downtown Boulder, one might execute this query...

SELECT name, fcode 
FROM geonames WHERE fcode = 'HTL'
ORDER BY geom &lt;-&gt; st_setsrid(st_makepoint(-105.27997,40.01789),4326)
LIMIT 10; 

Code is here... <a href='http://jvarga.github.com/geonames-for-postgis/' target='_new' rel="nofollow">http://jvarga.github.com/geonames-for-postgis/</a>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4063.page#12062</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4063.page#12062</link>
				<pubDate><![CDATA[Wed, 12 Dec 2012 06:46:24]]> GMT</pubDate>
				<author><![CDATA[ jackvarga]]></author>
			</item>
	</channel>
</rss>