X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CEC0F47621C for ; Tue, 1 Apr 2003 10:27:11 -0500 (EST) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by postgresql.org (Postfix) with ESMTP id AB8BD475F1C for ; Tue, 1 Apr 2003 10:27:08 -0500 (EST) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.3/8.9.3) with ESMTP id TAA05529; Tue, 1 Apr 2003 19:26:34 +0400 (MSD) Date: Tue, 1 Apr 2003 19:26:33 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: Bruno Wolff III Cc: Rajesh Kumar Mallah , Rudi Starcevic , pgsql-sql@postgresql.org Subject: Re: Off topic : world database In-Reply-To: <20030331170032.GA2303@wolff.to> Message-ID: References: <3E824070.7070207@oasis.net.au> <3E878C84.5030004@oasis.net.au> <200303311108.48751.mallah@trade-india.com> <20030331170032.GA2303@wolff.to> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-31.7 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/6 X-Sequence-Number: 12707 I don't know if it's legal to use data from http://www.nima.mil/gns/html/index.html but it's a huge collection of geo data. Oleg On Mon, 31 Mar 2003, Bruno Wolff III wrote: > On Mon, Mar 31, 2003 at 11:08:48 +0530, > Rajesh Kumar Mallah wrote: > > > > I am wanting to make an application similar to you > > which shud be able to get all the places within certaint > > radius of the place in question. > > If you look at contrib/earthdistance in the 7.4 source tree, there is > a varient way to use earthdistance based on the cube data type instead > of point. This varient uses a 3D representation so you don't have to > worry about issues at the poles or wrap around. You can do indexed > searches (though I don't really know how well (fast) the indexes work, > since I haven't tried them with large amounts of data) inside of > bounding boxes, then double check that the points are really closer > than the desired distance. > > This varient uses a couple of new cube functions and check constraints > on domains. You can just comment out the check constraints. The 7.4 > contrib/cube might work with 7.3. (If there are problems you should > be able to compare with the 7.3 version to figure out how to make it > work.) > > P.S. > > It would be nice if you eventually summarize your data sources, as I > would eventually like to get hold of similar data for areas outside of > the US for my project. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83