hi
But I am not getting how to addtwo points via shapeobj as I already placed
points in my map file. my function is like this....
function AddPoints ( $map, $qresult )
{
$i = 0;
foreach($qresult as $row)
{
$poi[$i] = ms_newPointObj();
$ln[$i] = ms_newLineObj();
$shp[$i] = ms_newShapeObj(MS_SHAPE_POINT);
$poi[$i]->setXY($row[1],$row[2]);
$ln[$i]->add($poi[$i]);
$shp[$i]->add($ln[$i]);
$shp[$i]->set(index, $row[0]);
$this_layer->addFeature( $shp[$i] );
$i++;
}
} // end AddPoints
plz response .......
thanks
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users