Re: getting access to geodistance (what do I need to install/enable) in an existing db install

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Assad Jarrahian <jarraa(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: getting access to geodistance (what do I need to install/enable) in an existing db install
Date: 2006-01-11 23:31:02
Message-ID: 20060111233102.GA88975@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 11, 2006 at 04:20:05PM -0700, Assad Jarrahian wrote:
> my appologies. It was a typo. The method is geo_distance(point, point)

Ah, I'd forgotten about that one. geo_distance is part of the
contrib/earthdistance module, as your pg_admin output hints at:

> CREATE OR REPLACE FUNCTION geo_distance(point, point)
> RETURNS float8 AS
> '$libdir/earthdistance', 'geo_distance'
> LANGUAGE 'c' IMMUTABLE STRICT;
> ALTER FUNCTION geo_distance(point, point) OWNER TO postgres;

If you want to use that function then install contrib/earthdistance
(you'll have to install contrib/cube first because earthdistance
depends on it). If you're not sure how to install those modules
then look around for files named cube.sql and earthdistance.sql and
load them into your database (cube.sql first).

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2006-01-11 23:31:23 Re: Different exponent in error messages
Previous Message Assad Jarrahian 2006-01-11 23:20:05 Re: getting access to geodistance (what do I need to install/enable) in an existing db install