PHP/MapScript: How to change the color of a point?

Alexandre Abramides alexandre at ACQUASOFTWARE.COM.BR
Thu Jul 27 13:20:36 EDT 2006


Anyone?   I would really apreciate some help.

Thanks,
Alexandre.

----- Original Message ----- 
From: "Alexandre Abramides" <alexandre at ACQUASOFTWARE.COM.BR>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Thursday, July 20, 2006 5:16 PM
Subject: [UMN_MAPSERVER-USERS] PHP/MapScript: How to change the color of a
point?


> This is what I do to draw a point:
>
>   $point = ms_newPointObj();
>   $point->setXY($x,$y);
>   $line = ms_newLineObj();
>   $line->add($point);
>   $feature = ms_newShapeObj(0);
>   $feature->set("text"," ");
>   $feature->add($line);
>   $layer = $map->getLayerByName($layer_name);
>   $layer->addFeature($feature);
>
> What I need is to change the color of the point (RGB) according to some
> condition, can anyone help me?
>
> Alexandre.
>



More information about the mapserver-users mailing list