[mapserver-users] Changing the gap parameter of a style via a URL

Jean Pierre MALOBERTI jp.maloberti at gmail.com
Fri Jan 13 01:40:51 EST 2012


Hi all,

I'm working on an administration tool for our Flex/PHP/Mapserver
application. The goal is to render the styles and change parameters
dynamically on the clien application by using a URL like this :

http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&map.layer[couche_s].class[0].style[0]=ANGLE+30+COLOR+200+100+50+SYMBOL+hachure+SIZE+5&icon=couche_s,0&mode=legendicon

It works for parameters like COLOR, OUTLINECOLOR, SYMBOL, WIDTH, SIZE but
with parameter GAP it throws an error : loadStyle(): Unknown identifier.
Parsing error near (GAP):(line 1)

If the style is written in the mapfile, the legend icon renders using this
URL :
http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&&icon=couche_s,0&mode=legendicon

      STYLE
        ANGLE 30
        COLOR 200 100 50
        GAP 3
        SIZE 5
        SYMBOL "hachure"
     END

Where is the problem ?

Thanks
-- 
Jean Pierre MALOBERTI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120113/ca96675a/attachment.html


More information about the mapserver-users mailing list