Well, you can actually load SLD dynamically. So you can create the SLD file on the client side, modifying it for the user request, and then send it to the server. You can do it with an SLD parameter and point at a url that has the SLD, or use SLD_BODY parameter and include the full XML.
A recent email thread has some more information: http://www.nabble.com/POST-XML-document-WMS-tf2016592.html
I wish we had a better section of the docs on SLD post, if anyone wants to fill in http://docs.codehaus.org/display/GEOSDOC/SLD-POST please feel free to.
But in general, GeoServer does fine passing in dynamic SLDs, you don't need to load them on the server side, you just have to have your client make them right. Note there's some basic AJAX SLD generation code in the source tree, at WEB-INF/pages/SLDWizard.jsp
best regards,
Chris
fang.chen@anonymised.com wrote:
Here i got another problem:
there is a tower layer, in which each tower is displayed as an icon on the map,
we want to execute a search to find out those towers we want
(say finding out all the towers' names start with 'tan'),
and just display the matched results on the map, hide the
unmatched towers from the map, in another word how to tell server not to display those unmatched towers?
what I am thinking:
I can write SLD to hide those unmatched towers in the tower layer,but SLD could not be loaded automatically,
which means if they search towers' names start with "gan" I should not use the same SLD,and another SLD should be reloaded,that is a problem.
so please give me some tips about how to resovle this kind of problem:hiding unmatched icons in the map automatically.
ps:Thanks Chris,your quick answer make me not feel lonely:)
!DSPAM:1003,44d1916448031995013331!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
!DSPAM:1003,44d1916448031995013331!
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:1003,44d1916448031995013331!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org