[mapserver-dev] MS_FOLLOW

Robert Pivalone robert.pivalone at gmail.com
Wed Feb 17 05:37:28 EST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20100217/1b2aec28/attachment.html


More information about the mapserver-dev mailing list