[postgis-users] parse error - invalid geometry error
Martin Davis
mbdavis at VividSolutions.com
Fri Jul 21 08:20:05 PDT 2006
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/7f46a9c8/attachment.html>
More information about the postgis-users
mailing list