moving an existing point

Camden Daily cdaily at GMAIL.COM
Thu Jun 2 12:08:51 EDT 2005


$layer->getShape(-1, 0) will return a ShapeObj, not a PointObj.  To
get the point, do this

$shape = $layer->getShape(-1, 0);
$line = $shape->line(0);
$point = $line->point(0);

You should then be able to call setXY on the $point object.

A shape object is made up of lines, which are made up of points.  If
the shape is simply a point, it contains 1 line with 1 point in the
line.

Camden Daily
Prudential Preferred Properties
www.prupref.com



More information about the mapserver-users mailing list