[mapserver-users] Changing Point style on-the-fly

George A. Dubin lysholm at tut.by
Fri Jul 18 06:12:16 EDT 2008


On Thu, 17 Jul 2008 15:47:12 +0300, Paul Spencer <pspencer at dmsolutions.ca>  
wrote:

> If you are using MapServer 5.0 or the brand new 5.2 then you can  
> probably use attribute binding, which allows you to specify an attribute  
> in your data as the source for various parameters in the map file.  For  
> instance, if you have a field in your database called point_size that  
> has a size value then you can do this:
>
> SIZE [point_size]
>
> You can also bind to COLOR and most other attributes inside STYLE and  
> LABEL.  I just went to look for documentation on attribute binding and I  
> can't seem to find anything beyond the original rfc  
> (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19) so if you are  
> running into trouble, don't hesitate to ask the developers :)
>
> Cheers
>
> Paul
>
>
> On 17-Jul-08, at 7:52 AM, George A. Dubin wrote:
>
>> Hi all! I'm firing up a mapserver for our company these days. Mapserver  
>> successfully connects to Postgres, and draws points from my database.  
>> But I need to change some parameters, such as colour and size of points  
>> on-the-fly, depending on the duration of their existence. Is there a  
>> way to make Mapserver to pick size and colour of points from Postgres,  
>> too?
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> __________________________________________
>
>     Paul Spencer
>     Chief Technology Officer
>     DM Solutions Group Inc
>     http://www.dmsolutions.ca/
>

That really works!!! Thanks a lot!


More information about the mapserver-users mailing list