[mapserver-users] plz response immediate (deadline)

Amiya Patra amiyapatra188 at gmail.com
Wed Jan 21 02:45:13 PST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090121/099f2dab/attachment.htm>


More information about the MapServer-users mailing list