Ticket #3115 (closed defect: fixed)
[WMC] embedded SLD in context does not work with namespace prefix
| Reported by: | bartvde | Owned by: | assefa |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | tomkralidis;assefa |
Description
For instance:
<Style current="1"><SLD><sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><sld:NamedLayer><sld:Name>AAA63</sld:Name><sld:UserStyle>
Which is what OpenLayers? will write out.
Apparently the following line does not deal with namespace prefixes:
psStyleSLDBody = CPLGetXMLNode(psStyle, "SLD.StyledLayerDescriptor");
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

