Texas roads styled

Data: edges_merge

Texas roads, styled The style is based on the following rules:
 * minor roads (cfcc_2 > 4) are to be depicted with a dashed stroke (5 pixels line, 5 pixels space), light gray color (#AAAAAA), 1 pixel wide (TIGER 2008 dataset: MTFCC = S1740)
 * local roads (cfcc_2 = 4) are to be depicted with a solid stroke, color #736A59, 1 pixel wide (TIGER 2008 dataset: MTFCC = S1400)
 * main roads (cfcc_2 = 3) are to be depicted with a piped stroke: (TIGER 2008 dataset: MTFCC = S1200)
 * outer line is 4 pixel wide, #736A59 color, round line caps and joins
 * inner line is 2 pixel wide, #F4E000 color, round line caps and joins
 * highways (cfcc_2 < 3) are to be depicted with a piped stroke as well: (TIGER 2008 dataset: MTFCC = S1100)
 * outer line is 8 pixel wide, #736A59 color, round line caps and joins
 * inner line is 6 pixel wide, #F3A200 color, round line caps and joins

Rendering must be done so that, visually, highways stay on top of everything, major roads on top of the rest, and minor roads on the bottom of everything else. Also, the piped lines should draw properly at line junctions (the inner line must not be interrupted)

The result of this wms request:

.../wms?HEIGHT=600&WIDTH=950&LAYERS=topp%3Atiger_shp&STYLES=roads_classified&SRS=EPSG%3A4326&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-96.980629943844,29.854114257812,-96.79038641357,29.974268066406

should look like:



The SLD definition of the layers follows:

   Texas roads, styled      CFCC_2 4   <LineSymbolizer> <Stroke> <CssParameter name="stroke">#AAAAAA</CssParameter> <CssParameter name="stroke-width">1</CssParameter> <CssParameter name="stroke-dasharray">5 5</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle>

<FeatureTypeStyle>

<Rule>  <ogc:PropertyIsEqualTo> CFCC_2</ogc:PropertyName> 4</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#736A59</CssParameter> <CssParameter name="stroke-width">1</CssParameter> </Stroke> </LineSymbolizer> </Rule>

<Rule>  <ogc:PropertyIsEqualTo> CFCC_2</ogc:PropertyName> 3</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#736A59</CssParameter> <CssParameter name="stroke-width">4</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> <CssParameter name="stroke-join">round</CssParameter> </Stroke> </LineSymbolizer> </Rule>

<Rule>  <ogc:PropertyIsLessThan> CFCC_2</ogc:PropertyName> 3</ogc:Literal> </ogc:PropertyIsLessThan> </ogc:Filter> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#736A59</CssParameter> <CssParameter name="stroke-width">8</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> <CssParameter name="stroke-join">round</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle>

<FeatureTypeStyle> <Rule>  <ogc:PropertyIsEqualTo> CFCC_2</ogc:PropertyName> 3</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#F4E000</CssParameter> <CssParameter name="stroke-width">2</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> <CssParameter name="stroke-join">round</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle>

<FeatureTypeStyle> <Rule>  <ogc:PropertyIsLessThan> CFCC_2</ogc:PropertyName> 3</ogc:Literal> </ogc:PropertyIsLessThan> </ogc:Filter> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#F3A200</CssParameter> <CssParameter name="stroke-width">6</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> <CssParameter name="stroke-join">round</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor>