From: Michael Fuhr <mike@fuhr.org>
To: Sandeep Kumar Jakkaraju <sandeepkumar.jakkaraju@gmail.com>
Cc: Postgresql <pgsql-general@postgresql.org>
Subject: Re: PostGIS
Date: Thu, 19 Oct 2006 20:53:55 -0600
Message-ID: <20061020025355.GA22119@winnie.fuhr.org> (raw)
In-Reply-To: <c653c98f0610190901v3e149482je80db02974f698b@mail.gmail.com>
References: <013e01c6f390$7d474220$8e904618@owner>
<4F3EB224-4B1A-4E1D-A364-F4477B21E62E@me3.com>
<c653c98f0610190901v3e149482je80db02974f698b@mail.gmail.com>
On Thu, Oct 19, 2006 at 09:31:40PM +0530, Sandeep Kumar Jakkaraju wrote:
> I use postgis to wipe my ASS ...
> no good documentation ...
If you find the documentation lacking then please consider posting
to postgis-users with suggestions for improving it. Even better,
submit a patch :-)
> in what units is the result of distance(geometry,geometry)..
http://postgis.refractions.net/docs/ch06.html#id2526205
"Return the cartesian distance between two geometries in projected units."
If the geometries are in degrees then distance() returns degrees;
if they're in meters then distance() returns meters; if they're in
cubits then distance() returns cubits.
> what is distance_sphere(geometry,geometry)..
http://postgis.refractions.net/docs/ch06.html#id2528534
"Returns linear distance in meters between two lat/lon points."
> when u give same geometry as both parameters it gives a non-zero
> value ....
test=> SELECT distance(GeomFromText('POINT(12 34)'), GeomFromText('POINT(12 34)'));
distance
----------
0
(1 row)
test=> SELECT distance_sphere(GeomFromText('POINT(12 34)'), GeomFromText('POINT(12 34)'));
distance_sphere
-----------------
0
(1 row)
If you're getting unexpected behavior then please post a test case
to postgis-users.
--
Michael Fuhr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: mike@fuhr.org, sandeepkumar.jakkaraju@gmail.com
Subject: Re: PostGIS
In-Reply-To: <20061020025355.GA22119@winnie.fuhr.org>
References: <013e01c6f390$7d474220$8e904618@owner> <4F3EB224-4B1A-4E1D-A364-F4477B21E62E@me3.com> <c653c98f0610190901v3e149482je80db02974f698b@mail.gmail.com> <20061020025355.GA22119@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox