![]() |
||||
|
|
||||
[Maplab-dev] [Bug 266] New: generated SLD documents don't validate against schemabugzilla-daemon@www.maptools.org bugzilla-daemon@www.maptools.orgFri, 5 Mar 2004 11:31:35 -0500
|
||||
http://www.maptools.org/bugzilla/show_bug.cgi?id=266
Summary: generated SLD documents don't validate against schema
Product: MapLab
Version: 3.0
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: SECT (Studio)
AssignedTo: maplab-dev@lists.maptools.org
ReportedBy: bartvde@xs4all.nl
The first SLD document I generated does not validate against the OGC schema at:
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd
Errors:
-NAME should be Name
-ogc namespace is not used in the Filter
-the sequences of some XML elements are wrong (the schema determines the
sequence), e.g.
<xsd:sequence>
<xsd:element ref="sld:GraphicFill" minOccurs="0"/>
<xsd:element ref="sld:CssParameter" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
so first GraphicFill, then CssParameter.
Also Mark should be in front of Size!
This is the original generated SLD by Studio:
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<NAME>Gemeentes</NAME>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Filter><PropertyIsEqualTo><PropertyName>GEMNAAM</PropertyName><Literal>Deurne</Literal></
PropertyIsEqualTo></Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#8f0000</CssParameter>
<GraphicFill>
<Graphic>
<Size>1</Size>
<Mark>
<WellKnownName>cross</WellKnownName>
<Fill>
<CssParameter name="fill">#8f0000</CssParameter>
</Fill>
</Mark>
</Graphic>
</GraphicFill>
</Fill>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |