Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9E4DD9FB39D for ; Mon, 30 Oct 2006 19:24:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 29804-02 for ; Mon, 30 Oct 2006 19:24:31 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id A52E29FB263 for ; Mon, 30 Oct 2006 19:24:30 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from clam.niwa.co.nz (clam.niwa.co.nz [202.36.29.1]) by svr4.postgresql.org (Postfix) with ESMTP id 688355AF031 for ; Mon, 30 Oct 2006 23:24:28 +0000 (GMT) Received: from storm-imap.niwa.co.nz (storm-imap.niwa.co.nz [192.168.59.111]) by clam.niwa.co.nz (8.13.1/8.13.1) with ESMTP id k9UNOLNl018191 for ; Tue, 31 Oct 2006 12:24:22 +1300 (NZDT) (envelope-from b.wood@niwa.co.nz) Received: from [192.168.57.107] (woodb-ws.greta.niwa.cri.nz [192.168.57.107]) by storm-imap.niwa.co.nz (8.12.10/8.12.10) with ESMTP id k9UNOLp4021799 for ; Tue, 31 Oct 2006 12:24:21 +1300 (NZDT) (envelope-from b.wood@niwa.co.nz) Message-ID: <454689A5.8070306@niwa.co.nz> Date: Tue, 31 Oct 2006 12:24:21 +1300 From: Brent Wood Reply-To: b.wood@niwa.co.nz Organization: NIWA User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060411) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: Postgresql Subject: Re: PostGIS References: <013e01c6f390$7d474220$8e904618@owner> <4F3EB224-4B1A-4E1D-A364-F4477B21E62E@me3.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (clam.niwa.co.nz [192.168.16.8]); Tue, 31 Oct 2006 12:24:22 +1300 (NZDT) X-Scanned-By: MIMEDefang 2.56 on 192.168.16.8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.316 tagged_above=0 required=5 tests=BAYES_50, SARE_MILLIONSOF X-Spam-Level: X-Archive-Number: 200611/75 X-Sequence-Number: 103171 Sandeep Kumar Jakkaraju wrote: > > I use postgis to wipe my ASS ... > no good documentation ... The docs are a bit technical, but the product is excellent, I use it to manage a variety of spatial datasets, with up to hundreds of millions of features, on half a dozen systems. I'd highly recommend it, & would also say that the online support from the developers and users is of a very high standard. Note that you should have some sort of understanding of projections before you start doing things like measuring or reprojecting, to understand the issues involved, but these are not just a Postgis issue. In answer to the original question (I'd have replied earlier but just got back from 2 weeks at sea - using Postgis amongst other things) If you look at the case studies Paul Ramsey is accumulating at http://postgis.refractions.net/news/ it might help. > in what units is the result of distance(geometry,geometry) As in the docs, the distance is returned in the units specified in the projection definition of your geometries. > what is distance_sphere(geometry,geometry).. when u give same geometry > as both parameters it gives a non-zero value .... Hmm. just tried this. Within floating point rounding errors, this seems to contradict this claim, unless you suggest a floating point non-zero represenation of zero is a postgis error. In which case I suggest CompSci 101 might be educational. corax=# select distance_sphere(the_geom,the_geom) from bivouac_pnt limit 10; distance_sphere ---------------------- 0 0 0 0 0 7.07321632848846e-10 7.07321632848846e-10 7.07321632848846e-10 0 7.07321632848846e-10 (10 rows) Cheers, Brent Wood > > On 10/19/06, *James Cradock* > wrote: > > On Oct 19, 2006, at 11:08 AM, Bob Pawley wrote: > >> Can anyone point me to an overview of PostGIS and how it is being >> used??? > > Bob, > > PostGIS provides extensions to PostgreSQL's procedural language > and geometric data types so that it can store geo-referenced data, > and so that you can query this data using geo-spatial coordinates. > > Software like MapServer (web) and Qgis (desktop) use PostGIS to > provide data in map applications. > > The Refractions site already noted is a good start. The MapServer > site is another: > > http://mapserver.gis.umn.edu/gallery > > Jim > > ----- > > James Cradock, jcradock@me3.com > > > > > > -- > Sandeep Kumar Jakkaraju > WeBlog: > http://jakkarajus.blogspot.com