Definitely a bug. Parameters must be configured in the lexer to be mutable via 
URL and GAP isn't set up. If you'd file a ticket I can fix quickly.  -Steve

________________________________
From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Jean Pierre MALOBERTI 
[jp.malobe...@gmail.com]
Sent: Friday, January 13, 2012 12:40 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Changing the gap parameter of a style via a URL

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
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to