[mapserver-users] Changing WMS Styles on the FLy
Guillaume Sueur
no-reply at neogeo-online.net
Sat Oct 17 00:47:51 PDT 2009
Hi Bill,
SLD would definitely be the best way to achieve that. You can pass XML
string in the GetMap, but the limitation of url length in browser won't
allow you to go very far.
What you can do is build a default SLD file (generated from your mapfile
settings, mapscript has got functions for that), allow its edition on
the client side (modification of fill and stroke colors for instance),
and save it back to a temp (or not) location, with a specific name. Then
send getMap again with SLD parameter pointing to that new SLD file. Note
that the sld file must be accessible for mapserver with http.
Don't hesitate to ask for more,
Regards,
Guillaume
Le vendredi 16 octobre 2009 à 15:49 -0600, Bill Thoen a écrit :
> Hi folks,
>
> I've got a WMS server that that's doing a great job supplying about
> 40-50 layers of US national data to a project in Philadelphia, but now
> the client wants to be able to change layer styles interactively. So
> what I'd like to know is using SLD the best way to approach this? Since
> you can pass SLD info back to the server along with a GetMap request, it
> seems that SLD was designed for this job. Or would it be easier to
> interactively modify a mapfile directly before issuing a getmap (would
> that even work?) What other ways are there to interactively change how a
> layer is styled?
>
> I'm not very familiar with SLD yet, but it sounds like you have to set
> up a configuration file in XML, and then you pass its location to the
> system in a GetMap request. Could you also just pass serialized XML in
> the GetMap instead of a UIRL to _change_ a style? Or do you always have
> to use a configuration file? I'm still studying up on this, but I 'm
> curious whether this is the right approach to interactively change later
> styles or if I should be looking at something else altogether.
>
> Thanks!
> - Bill Thoen
>
>
> _______________________________________________
> 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