Property 'angle' does not exist in this object.

cj5 cj at ODEWEBDESIGNS.COM
Thu Aug 10 16:16:38 PDT 2006


I got this error in this PHP/Mapscripot code:

while($points = $lyr->nextShape()) {
	//echo $points->index . "<br />";
	$pointShp = $lyr->getShape(-1, $points->index);
	
	$pt = ms_newPointObj();
	$pt->setXY($pointShp->getValue($lyr, 'LONGITUDE'),
$pointShp->getValue($lyr, 'LATITUDE'));
	$ln = ms_newLineObj();
	$ln->add($pt);
	$shp = ms_newShapeObj(MS_SHAPE_POINT);
	$shp->add($ln);
	
	$noWindStyle->set("angle", $pointShp->getValue($lyr, 'WINDDIR'));
	
	if($pointShp->getValue($lyr, 'SPDMH') < 50) {
		$shp->set("classindex", 1);
	}
	
	$shp->draw($map, $lyr, $image);
}

My main concern is the the line it refers to in the error message
$noWindStyle->set("angle", $pointShp->getValue($lyr, 'WINDDIR'));

Now I established that as a style object, and in the documentation it says
that there is an angle variable. So I'm confused as to why I'm getting this
error. Any ideas?
-- 
View this message in context: http://www.nabble.com/Property-%27angle%27-does-not-exist-in-this-object.-tf2087868.html#a5754439
Sent from the Mapserver - User forum at Nabble.com.



More information about the MapServer-users mailing list