point <-> polygon not supported?

From: "Scott Ding" <scott(dot)ding(at)autodesk(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: point <-> polygon not supported?
Date: 2003-02-19 00:12:36
Message-ID: E8EF167E598AD74381DD26B7F315098A1C988D@msgpetmb1.amer.ads.autodesk.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm using version 7.3.2. I got the following error when I executed the
sql statement in psql:

llogicdb=> select ID, POINAME, ADDRESS, (GEOM::point <->
polygon('((-122.406903
, 37.785768),(-122.405903, 37.785768),(-122.405903,
37.786768),(-122.406903, 37
.786768))')) * 87878.15460046429 as CFF_DISTANCE from NT_SF_POI where
(FACILITY
TYPE='3578') and (GEOM::point <-> polygon('((-122.406903,
37.785768),(-122.4059
03, 37.785768),(-122.405903, 37.786768),(-122.406903, 37.786768))')) *
87878.15
460046429 <= 3.41381770434236E-5 order by CFF_DISTANCE;
ERROR: Unable to identify an operator '<->' for types 'point' and
'polygon'
You will have to retype this query using an explicit cast

Does this mean that the <-> operator does not support distance between a
point and a simple polygon?

Scott Ding

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-02-19 06:29:25 Re: Drop temporary table only if it exists
Previous Message JBJ 2003-02-18 23:13:04 once again, sorting with Unicode