[postgis-users] parse error - invalid geometry error
Baris YILMAZ
baris_999 at yahoo.com
Fri Jul 21 08:38:01 PDT 2006
Ok.. Thank you very much for your prompt reply.
Regards.
----- Original Message ----
From: Martin Davis <mbdavis at VividSolutions.com>
To: Baris YILMAZ <baris_999 at yahoo.com>; PostGIS Users Discussion <postgis-users at postgis.refractions.net>
Sent: Friday, July 21, 2006 5:20:05 PM
Subject: RE: [postgis-users] parse error - invalid geometry error
Message DIV { MARGIN:0px;} Polygons need two levels of parenthesis, to allow for the external shell and hole rings. So the WKT should be:
POLYGON((2568262.1 5635344.1, 2568298.5 5635387.6, 2568261.04 5635276.15, 2568262.1 5635344.1))
Martin Davis, Senior Technical Architect
Vivid Solutions Inc. www.vividsolutions.com
Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5
Phone: (250) 385 6040 - Local 308 Fax: (250) 385 6046
-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Baris YILMAZ
Sent: July 21, 2006 6:56 AM
To: PostGIS Users Discussion
Subject: [postgis-users] parse error - invalid geometry error
Hi,
I try to execute the following query on Postgis ver 1.0.4 .
select asbinary('POLYGON(2568262.1 5635344.1, 2568298.5 5635387.6, 2568261.04 5635276.15, 2568262.1 5635344.1)');
But I get the following error;
ERROR: parse error - invalid geometry
Can anyone tell me what is wrong?
Best Regards
Baris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060721/0da4fd47/attachment.html>
More information about the postgis-users
mailing list