<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV style="DIRECTION: ltr">I am retrieving a list of shapes from a line 
shapefile file using the following 
code:<BR><BR>for($x=0;$x&lt;count($oShapeList);$x++)<BR>{&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp; $oSelectedShape = $oRelationLayer-&gt;getshape(-1, 
$oShapeList[$x]);<BR>&nbsp;&nbsp; array_push($oShapeObjectList,$oSelectedShape); 
<BR>}<BR><BR>I want to merge this list of shapes into one shape (i.e. one 
line).&nbsp; I thought I could do it using the following code but it returns a 
"<B>Fatal error</B>: Object has an invalid _handle_ property": <BR><BR>$oLine = 
ms_newShapeObj(MS_SHAPE_LINE);<BR>For($x=0; 
$x&lt;count($oShapeObjectList);$x++)<BR>{<BR>&nbsp;&nbsp; 
$oLine-&gt;add($oShapeObjectList[$x]);<BR>}<BR><BR>The goal here is to create 
one line, then use the GEOS - buffer(width) to create a polygon object that I 
can save to a new shapefile. <BR><BR>Does anybody have any ideas? OR 
CODE!!!<BR><BR>Sincerely,<BR></DIV>
<DIV style="DIRECTION: ltr"><SPAN class=sg>Bryon 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></DIV></FONT></DIV></BODY></HTML>