Hi Saul,
I know it is possible to configure the SLD in the MapBuilder context
document, but I need this setting to be on a dynamic basis, and not
hard-coded statically.
What I did was to modify the MapPane.js and MapPane.xsl in MapBuilder so
that I can have the MapPane.xsl set the SLD dynamically when the request
is being read in.
My problem now here is that the request that I have, which is with the SLD
consisting of the inline feature, works fine in a browser. But when I pass
it to MapPane.xsl, my applications "hangs" and I cannot retrieve any
layers at all from the server. There is no errors or exceptions logged,
which makes me difficult to find out what is the cause of the problem.
I previously have managed to make MapBuilder work successfully with a
"normal" SLD_BODY (meaning without the inline feature). So I have no idea
why it fails when I added in the inline faeture to the SLD_BODY.
Could someone please help me on this? Thank you!
Regards,
Lee Wai See
Hey guys,
I'm moving this to mapbuilder-users.
You can indeed make mapbuilder do this. You can "hard-code" it by
changing your mapbuilder context document's <Layer> tag to look a bit
like this:
<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.1.1" title="Local">
<OnlineResource xlink:type="simple"
xlink:href="http://64.119.128.70/geoserver/wms"/>
</Server>
<Name>massgis:GISDATA.TOWNS_POLY</Name>
<Title>MA Town Boundaries</Title>
<SRS>EPSG:26986</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>massgis:GISDATA.TOWNS_POLY</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<LineSymbolizer>
<Stroke>
<CssParameter
name="stroke">%2300FF00</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter
name="stroke-opacity">.5</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
</Layer>
Namespaces being exactly as above (I know they're wrong...) and the
match between the NAME in the SLD and the NAME in the layer portion are
both important.
To get really fancy, you could use javascript in the mapbuilder
application to alter the SLD xml on-the-fly, and generate the correct
inlineFeatures and styling XML that way.
--saul
dblasby@anonymised.com wrote:
You should be able to have mapbuilder do this. I suggest we ask on the
mapbuilder list and see what they say.
If you can get mapbuilder to make a "normal" SLD_BODY= (or POST) then
you can get it to work with InLineFeatures.
Unfortunately, Brent is away on holidays (back in a week) or I'd have
him look into it because I want to use this functionality in the near
future.
dave
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---