<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>Ok.. Thank you very much for your prompt reply.<br><br>Regards.<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Martin Davis <mbdavis@VividSolutions.com><br>To: Baris YILMAZ <baris_999@yahoo.com>; PostGIS Users Discussion <postgis-users@postgis.refractions.net><br>Sent: Friday, July 21, 2006 5:20:05 PM<br>Subject: RE: [postgis-users] parse error - invalid geometry error<br><br><title>Message</title>
<style type="text/css">DIV {
MARGIN:0px;}
</style>
<div><span class="261311915-21072006"><font color="#0000ff" face="Arial" size="2">Polygons need two levels of parenthesis, to allow for the external shell
and hole rings. So the WKT should be:</font></span></div>
<div><span class="261311915-21072006"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span class="261311915-21072006">POLYGON((2568262.1 5635344.1, 2568298.5
5635387.6, 2568261.04 5635276.15, 2568262.1 5635344.1))</span></div>
<div> </div>
<div> </div>
<div align="center"><font face="Arial" size="2"><strong>Martin Davis, Senior Technical
Architect</strong><br><strong><font color="#0000ff">Vivid Solutions
Inc.
<i><span><a target="_blank" href="http://www.vividsolutions.com">www.vividsolutions.com</a></span></i></font></strong><br></font><em><font face="Arial" size="2">Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5<br>Phone: (250)
385 6040 - Local 308 Fax: (250) 385 6046</font></em></div>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div></div>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b>
postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net] <b>On Behalf Of
</b>Baris YILMAZ<br><b>Sent:</b> July 21, 2006 6:56 AM<br><b>To:</b> PostGIS
Users Discussion<br><b>Subject:</b> [postgis-users] parse error - invalid
geometry error<br><br></font></div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<p>Hi,</p>
<p> </p>
<p>I try to execute the following query on Postgis ver 1.0.4 . </p>
<p> </p>
<p>select asbinary('POLYGON(2568262.1 5635344.1, 2568298.5 5635387.6,
2568261.04 5635276.15, 2568262.1 5635344.1)'); </p>
<p> </p>
<p>But I get the following error; </p>ERROR: parse error - invalid
geometry
<p> </p>
<p>Can anyone tell me what is wrong?</p>
<p> </p>
<p>Best Regards</p>
<p>Baris</p></div></blockquote></div><br></div></div></body></html>