Bryon,<br><br>I have something in java...<br><br>public void addLine(double[] arg){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lineObj line = new lineObj();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(int i=2;i&lt;arg.length;i=i+2){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pointObj p = new pointObj(arg[i],arg[i+1],0);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line.add(p);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layerObj layer = map.getLayerByName(&quot;COSMETIC&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shapeObj shape = new shapeObj(mapscript.MS_SHAPE_LINE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shape.add

(line);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer.addFeature(shape);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<br><br>WHERE COSMETIC IS:<br><br>LAYER<br>&nbsp;NAME COSMETIC<br>&nbsp;TYPE LINE<br>&nbsp;STATUS DEFAULT<br>&nbsp;CLASS<br>&nbsp; STYLE<br>&nbsp;&nbsp; SIZE 5<br>&nbsp;&nbsp; SYMBOL 'street'
<br>&nbsp; END<br>&nbsp; COLOR 255 0 0<br>&nbsp; OUTLINECOLOR 171 158 137<br>&nbsp;END<br>END<br><br>I use this to add a line to the map, temporarily.<br><br>[]'s<br><br>Fred<br><br>-- <br>&quot;Everything under the sun is in tune<br>But the sun is eclipsed by the moon&quot;
<br><br><div><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Bryon Kenne</b> &lt;<a href="mailto:bryon@peoplegis.com">bryon@peoplegis.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am retrieving a list of shapes from a line shapefile file using the<br>following code:<br><br>for($x=0;$x&lt;count($oShapeList);$x++)<br>{<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;&nbsp;I<br>thought I could do it using the following code but it returns a &quot;Fatal<br>error: Object has an invalid _handle_ property&quot;:<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)
<br>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>Bryon<br></blockquote></div><br><br>