From: David Sharp Date: 16 Mar 2004 09:30:35 +0000 Subject: [postgis-users] (no subject) Message-ID: <1079429435.13578.2.camel@davidpc> Hi , I just have a quick question , I am developing a gps/gis application at the moment and I am using postgresql as my database with postgis as a spatial extension. I was wondering is it possible to calculate the distance between an external point and a polygon . I am using lat/lon as units . The error I am receiving is > > when I enter > > SELECT ('(10.9,-62.)'::point <@> '((18.418 -65.772,17.957 > -65.832,18.0515 -66.865,18.361 -66.986,18.418 > -65.772))'::polygon)::numeric(20,5); > > > ERROR: Bad polygon external representation '((18.418 -65.772,17.957 > -65.832,18.0515 -66.865,18.361 -66.986,18.418 -65.772))' > > Any help much appreciated > > David Sharp > >