<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=261311915-21072006><FONT face=Arial color=#0000ff 
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 face=Arial color=#0000ff 
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>www.vividsolutions.com</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="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><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></BODY></HTML>