[mapserver-dev] MS_FOLLOW

Robert Pivalone robert.pivalone at gmail.com
Wed Feb 17 11:55:27 EST 2010


OK (ticket : http://trac.osgeo.org/mapserver/ticket/3175)

Thank you for information.

Best regards


2010/2/17 Alan Boudreault <aboudreault at mapgears.com>

> Robert,
>
> To change the angle propety to MS_FOLLOW, I think you should use something
> like:
>
> $oLabel->set('autoangle', MS_FALSE);
> $oLabel->set('autofollow', MS_FOLLOW);
>
> Unfortunately, the "autofollow" property in PHP/Mapscript is only available
> in
> MapServer 5.6. If you are building mapserver manually, the following patch
> could be easily applied:
>
> http://trac.osgeo.org/mapserver/changeset/9493
>
> regards,
> Alan
>
> On February 17, 2010 05:37:28 am Robert Pivalone wrote:
> > Hi,
> >
> > I have some troubles with PHP Mapscript (MapServer 5.4.2) and MS_FOLLOW.
> >
> >
> >
> > I would like to set the "ANGLE" property of a LabelObj with the value
> > "FOLLOW".
> >
> >
> >
> > With the following code :
> > $oMap = ms_newMapObj($szMapFile);
> > $oLayer = $oMap->getLayerByName("layer3"); // type LINE
> > $oClass = $oLayer->getClass(0);
> > $oLabel = $oClass->label;
> > $oLabel->set('autoangle', MS_FOLLOW);
> > $oMap->save($szMapFile);
> >
> >
> >
> > In the mapfile, when "ANGLE" property was ANGLE 33 or ANGLE [angle] or
> >  ANGLE AUTO, "ANGLE" property doesn't change. Have you got any idea ?
> >
> > Many thanks.
> >
> > Robert
> >
>
> --
> Alan Boudreault
> Mapgears
> http://www.mapgears.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20100217/0367151b/attachment.html


More information about the mapserver-dev mailing list