[Mapserver-users] modifying a point location using php_mapscript

fx gamoy fx.gamoy at mapxplore.com
Fri Sep 12 06:19:56 EDT 2003


thanks for all
it works now!!
best regards
fx
----- Original Message -----
From: "Eric Bridger" <eric at gomoos.org>
To: "fx gamoy" <fx.gamoy at mapxplore.com>; <mapserver-users at lists.gis.umn.edu>
Sent: Friday, September 12, 2003 3:33 AM
Subject: Re: [Mapserver-users] modifying a point location using
php_mapscript


> You will need to create a new shapefile.  AFAIK there is no way to
edit/update a shape file.
> You'll need to loop thru all the shapes in the shape file and add them one
by one to a new file.
> When you find the point you want, update the coordinates before adding it.
>
>
>
> At 12:14 AM 09/12/2003 +0100, fx gamoy wrote:
> >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
> >>
>
> _______________________________________________
> 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