<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hey<BR>
Could you explain what you mean by delicate,<BR>
I just changed the linestring to multilinestring<BR>It still returns the same error.<BR>Broun Uganda<BR><BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: oliver.christen@camptocamp.com<BR>To: tekuganda@hotmail.com; cartoweb-users@lists.maptools.org<BR>Subject: Re: [Cartoweb-users] Edit plugin MULTILINESTRING ERROR<BR>Date: Mon, 2 Jul 2007 08:32:59 +0200<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass
{font-size:10pt;font-family:Tahoma;}
</STYLE>

<DIV><FONT face=Arial>Hi</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>most likely because only LINESTRING was implemented in the plugin and not MULTILINESTRING</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>it should be possible to implemente that, though it may be delicate.</FONT></DIV>
<DIV><FONT face=Arial>I think the code to modify is in the function getGeometryType (ServerEdit.php)</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>regards</FONT></DIV>
<DIV><FONT face=Arial>Oliver</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=tekuganda@hotmail.com href="mailto:tekuganda@hotmail.com">Broun Uganda</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cartoweb-users@lists.maptools.org href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 02, 2007 4:17 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Edit plugin MULTILINESTRING ERROR</DIV>
<DIV><BR></DIV>
<DIV style="TEXT-ALIGN: left"><PRE style="BORDER-RIGHT: 0pt; BORDER-TOP: 0pt; BORDER-LEFT: 0pt; BORDER-BOTTOM: 0pt">Hi all,<BR>May some one advise me what the error is in this case. Every time i move a line in my edit i get this error below. why does it return a <SPAN style="FONT-WEIGHT: bold">linestring</SPAN> instead of a<SPAN style="FONT-WEIGHT: bold"> multilinestring</SPAN>? The geometry constranint is that it should return a multiline string or null but why does it return a linestring?<BR>UPDATE public.links SET the_geom = GeometryFromText('LINESTRING(493630.4177779367 1995850.7688888889,493350.18066688 1995824.71352007)', -1) , id = '53', year = '1978', material = 'Ceramic', condition = 'Fair', diameter = '255', from_node = '18', to_node = '17' WHERE gid = 43 [nativecode=ERROR:  new row for relation "links" violates check constraint "enforce_geotype_the_geom"]</PRE></DIV><BR>Broun Uganda<BR>
<HR>
Live Earth is coming.&nbsp; Learn more about the hottest summer event - only on MSN. <A href="http://liveearth.msn.com/?source=msntaglineliveearthwlm" target=_blank>Check it out!</A> 

<HR>

<P><BR>_______________________________________________<BR>Cartoweb-users mailing list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BLOCKQUOTE><br /><hr />Hotmail to go? Get your Hotmail, news, sports and much more!   <a href='http://mobile.msn.com' target='_new'>Check out the New MSN Mobile</a></body>
</html>