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

(line);<br>        <br>        layer.addFeature(shape);<br>        <br>    }<br><br>WHERE COSMETIC IS:<br><br>LAYER<br> NAME COSMETIC<br> TYPE LINE<br> STATUS DEFAULT<br> CLASS<br>  STYLE<br>   SIZE 5<br>   SYMBOL 'street'
<br>  END<br>  COLOR 255 0 0<br>  OUTLINECOLOR 171 158 137<br> 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>"Everything under the sun is in tune<br>But the sun is eclipsed by the moon"
<br><br><div><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Bryon Kenne</b> <<a href="mailto:bryon@peoplegis.com">bryon@peoplegis.com</a>> 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<count($oShapeList);$x++)<br>{<br>   $oSelectedShape = $oRelationLayer->getshape(-1, $oShapeList[$x]);<br>   array_push($oShapeObjectList,$oSelectedShape);
<br>}<br><br>I want to merge this list of shapes into one shape (i.e. one line).  I<br>thought I could do it using the following code but it returns a "Fatal<br>error: Object has an invalid _handle_ property":<br>
<br>$oLine = ms_newShapeObj(MS_SHAPE_LINE);<br>For($x=0; $x<count($oShapeObjectList);$x++)<br>{<br>   $oLine->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>