Points in Symbol

Camden Daily cdaily at GMAIL.COM
Fri Apr 22 10:34:11 EDT 2005


I don't know about Java, but in PHP you would first do 

  $symbol = $map->getsymbolbyname("circle");
  $points = $symbol->getpointsarray();

to get an array of the points.  Then loop through them like this:
 
  for ($i=0; $i < count($points); $i++) {
    $new_points[$i] = $points[$i] ..... // do whatever you want with
your points here
  }                           
 
Then set them back to the symbol:

   $symbol->setpoints($new_points);      

I'd imagine the java code to do this isn't too different.

-Camden



More information about the mapserver-users mailing list