moving an existing point
Camden Daily
cdaily at GMAIL.COM
Thu Jun 2 09:08:51 PDT 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