Multiple FeatureTypeStyle in a UserStyle

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Sun Apr 1 23:02:10 PDT 2007


Why not use 2 rules inside of the same FeatureTypeStyle? That should work.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Jackey Cheung <cheung.jackey at GMAIL.COM>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: [UMN_MAPSERVER-USERS] Multiple FeatureTypeStyle in a UserStyle
Datum: 01/04/07 23:25

> Greetings!
>  
> I'm try the SLD on ms4w 4.10 now, and got a problem.
>  
> I've put 2 <FeatureTypeStyle> blocks in a userstyle:
>  
>  <NamedLayer>
>   <Name>test</Name>
>   <UserStyle>
>    <FeatureTypeStyle>
>     <Rule>
>      <LineSymbolizer>
>       <Stroke>
>        <CssParameter
name="stroke">#666666</CssParameter>
>        <CssParameter
name="stroke-width">7</CssParameter>
>       </Stroke>
>      </LineSymbolizer>
>     </Rule>
>    </FeatureTypeStyle>
>    <FeatureTypeStyle>
>     <Rule>
>      <LineSymbolizer>
>       <Stroke>
>        <CssParameter
name="stroke">#FFFFFF</CssParameter>
>        <CssParameter
name="stroke-width">4</CssParameter>
>       </Stroke>
>      </LineSymbolizer>
>     </Rule>
>    </FeatureTypeStyle>
>   </UserStyle>
>  </NamedLayer>
> </StyledLayerDescriptor>
>  
> But it seems that MapServer only draws the second FeatureTypeStyle only.
>  
> Why's that?
> 
> 



More information about the MapServer-users mailing list