[Mapserver-users] modifying a point location using php_mapscript

fx gamoy fx.gamoy at mapxplore.com
Thu Sep 11 19:14:14 EDT 2003


thanks for your answer Eric
 i have managed to get the pointobj and to use the setXY method
but this method don't affect the location of the point in the shapefile

$oLayertest =
ms_newShapefileObj("f:/mapserver_data/data/mobilier/mobilier_point",-2);
$oPoint=$oLayertest->getPoint($_SESSION["STEP"]); //where session["STEP"] is
the index of the obj
$oPoint->setXY($Xgeo,$Ygeo);
 $oPoint->free();
 $oLayertest->free();
the point's location is not updated in the shape file
any suggestion??
thanks
fx

----- Original Message -----
From: "Eric Bridger" <eric at gomoos.org>
To: "fx gamoy" <fx.gamoy at mapxplore.com>
Cc: "Mapserver List" <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, September 11, 2003 3:34 PM
Subject: Re: [Mapserver-users] modifying a point location using
php_mapscript


> You probably need to call:
>
> $lineObj = $shapeObj->line(0);
> $pointObj = $lineObj->point(0);
>
>
> On Thu, 2003-09-11 at 18:16, fx gamoy wrote:
> > hello world,
> > i am using mapserver 3.6.3 using php_mapscript
> > i have managed to create a pointObj on a shapefile using the
shapefileObj and the addPoint Method.
> >
> > Then i would like to modify the location of this pointobj.
> > Using getfeaturebyattribute, i obtain a shapeobj corresponding to the
pointObj i want to modify.
> > Can i create a pointobj instead of a shapeobj in order to use the setXY
method?
> > or
> > can i convert the shapeobj to a pointobj??
> >
> > i have seen in the doc that perl provide get,copy... methods? not in
whith php_mapscript??
> >
> >
> > thanks for all
> > fx
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list