[mapserver-users] Dynamic symbols based on attribute - how?

Tamas Szekeres szekerest at gmail.com
Sat Aug 30 18:52:35 EDT 2008


Steve,

I'm afraid this kind of handling haven't been implemented yet. You
might want to turn your icon field into a CLASSITEM attribute to
achieve similar results.

Best regards,

Tamas



2008/8/30 Steve White <steve at online-archaeology.co.uk>:
> I'm using MS4W version 2.2.7 and have an Icon field in my shp file. My map
> file CLASS for the layer looks like this:
>
>
>
> CLASS
>
>                 TEMPLATE
> "C:\Inetpub\wwwroot\Map\test.html"
>
>                 SYMBOL
> "C:\Inetpub\wwwroot\Map\images\[Icon]"
>
>                 SIZE 16
>
>                 COLOR 255 0 255
>
> END
>
>
>
> This doesn't want to play because I get the following error:
>
>
>
> Undefined overlay symbol "C:\Inetpub\wwwroot\Map\images\[Icon]"
>
>
>
> If I add an explicit png file name it works, like this:
>
>
>
> CLASS
>
>                 TEMPLATE
> "C:\Inetpub\wwwroot\Map\test.html"
>
>                 SYMBOL
> "C:\Inetpub\wwwroot\Map\images\test.png"
>
>                 SIZE 16
>
>                 COLOR 255 0 255
>
> END
>
>
>
> I thought it was possible to use attribute data in a map file like this.
>
>
>
> How would I get this to work so that my data holds the filenames and I can
> have different icons per item?
>
>
>
> Cheers,
>
>
>
> Steve
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list