[Geoserver-users] Can I use dynamic SLD for selected features?

Maybe the subject is not exact.

I want to highlight a feature selected by WfsGetFeature widget. For achiving that, I prepared three SLDs,one for Point, another one for Line and the last one for Polygon. All highlight effects will be shown as graphical fill by using external image link in SLD files.

Now I can get a specified feature using WFS query,But how can I make it styled with corresponding SLD?
or,there are some other way for such a query and highlight requirement?

There were many subjects focused on HIGHLIGHT, but I didn’t find a complete solution there.
Can some one got a successful HIGHLIGHT application show me some tips?

Thanks in advance.

Yours,
Alex

Alex Chew ha scritto:

Maybe the subject is not exact.
I want to highlight a feature selected by WfsGetFeature widget. For achiving that, I prepared three SLDs,one for Point, another one for Line and the last one for Polygon. All highlight effects will be shown as graphical fill by using external image link in SLD files.
Now I can get a specified feature using WFS query,But how can I make it styled with corresponding SLD?
or,there are some other way for such a query and highlight requirement?
There were many subjects focused on HIGHLIGHT, but I didn't find a complete solution there.
Can some one got a successful HIGHLIGHT application show me some tips?

Well, one way to achieve this result on the WMS side is to issue a
GetMap that specifies the layer twice, one to paint it fully, the
other to paint only the highlighted features, and use the FILTER,
CQL_FILTER or FEATUREIDS to select the features to be hightlited on the second layer.

The request would look something like:
http://…/wms/?request=GetMap&layer=myLayer,myLayer&styles=,hightlight&FILTER=( )(...the ogc filter that selects the hightlighted features ...)

for more information about these WMS vendor parameters look at:
http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters

Cheers
Andrea