Opened 16 years ago

Closed 15 years ago

#2548 closed defect (fixed)

Mapserver SLD PointSymbolizer stroke color doensn't work

Reported by: crocq Owned by: assefa
Priority: normal Milestone: 5.4 release
Component: WMS Server Version: 5.0
Severity: normal Keywords:
Cc: sdlime

Description

I am using Mapserver 5.0 Windows precompile version. (Also tried it on the latest one 5.02).

I have a problem with styling point symbols through SLD's. When I only use a stroke section inside de Mark section for a PointSymbolizer then the color stays #808080 R:128, G:128, B:128 which is the standard color op Mapserver. It seems to me that mapserver is ignoring a color styling for point symbols when only a stroke section is used.

Because when I use a Fill section also inside the Mark Section then the color styling for symbols is correct for the fill and stroke section.

Is this a bug in Mapserver? Or does I always have to use a Fill section for coloring symbols.

With kind regards,

Tibor

As example the SLD i'm using.

<?xml version="1.0" encoding="utf-8"?> <StyledLayerDescriptor version="1.0.0">

<NamedLayer>

<Name>Verlichting</Name> <UserStyle>

<Title>MastenStyle</Title> <FeatureTypeStyle>

<Rule>

<Filter>

<PropertyIsEqualTo>

<PropertyName>ID_SES</PropertyName> <Literal>-2</Literal>

</PropertyIsEqualTo>

</Filter> <PointSymbolizer>

<Graphic>

<Mark>

<WellKnownName>circle</WellKnownName> <Stroke>

<CssParameter name="stroke">#ff0000</CssParameter> <CssParameter name="width">4</CssParameter>

</Stroke>

</Mark> <Size>12</Size> <Rotation>0</Rotation>

</Graphic>

</PointSymbolizer>

</Rule>

</FeatureTypeStyle>

</UserStyle>

</NamedLayer>

</StyledLayerDescriptor>

Change History (4)

comment:1 by sdlime, 16 years ago

Component: MapServer C LibraryWMS Server
Owner: changed from sdlime to mapserverbugs

comment:2 by sdlime, 16 years ago

Cc: sdlime added

comment:3 by assefa, 15 years ago

Milestone: 5.2.1 release
Owner: changed from mapserverbugs to assefa
Status: newassigned

committed in trunk r8017.

comment:4 by assefa, 15 years ago

Milestone: 5.2.1 release5.4 release
Resolution: fixed
Status: assignedclosed

tested. Closing.

Note: See TracTickets for help on using tickets.