[Geoserver-users] Linejoin and Linecap Styling

I'm not sure if this is the best channel for stylizing questions, please forgive me if it isn't.

I am trying to style a map (obviously). This is a sample image of the issue I am having:

http://unioncab.com/badmap.png

What's happening is I'm not getting nice pretty intersections, like I have seen in examples, instead there is a lot of overlapping.

I'm not sure if this is important but I am using the "edges" .shp files for 2007 from census.gov

here is the sample code for the rule regarding this dataset:

<Rule>
           <ogc:Filter>
             <ogc:PropertyIsEqualTo>
               <ogc:PropertyName>
                 MTFCC
               </ogc:PropertyName>
               <ogc:Literal>S1400</ogc:Literal>
             </ogc:PropertyIsEqualTo>
           </ogc:Filter>
           <MinScaleDenominator>0</MinScaleDenominator>
           <MaxScaleDenominator>12e3</MaxScaleDenominator>
           <LineSymbolizer>
             <Stroke>
               <CssParameter name="stroke">#000000</CssParameter>
               <CssParameter name="stroke-opacity">1</CssParameter>
               <CssParameter name="stroke-width">16</CssParameter>
               <CssParameter name="stroke-linejoin">mitre</CssParameter>
               <CssParameter name="stroke-linecap">butt</CssParameter>
             </Stroke>
           </LineSymbolizer>
           <LineSymbolizer>
             <Stroke>
               <CssParameter name="stroke">#808080</CssParameter>
               <CssParameter name="stroke-opacity">1</CssParameter>
               <CssParameter name="stroke-width">12</CssParameter>
               <CssParameter name="stroke-linejoin">mitre</CssParameter>
               <CssParameter name="stroke-linecap">butt</CssParameter>
             </Stroke>
           </LineSymbolizer>
           <TextSymbolizer>
             <VendorOption name="group">yes</VendorOption>
             <LabelPlacement>
               <LinePlacement>
               <PerpendicularOffset>
                  0
               </PerpendicularOffset>
               </LinePlacement>
             </LabelPlacement>
             <Label>
               <ogc:PropertyName>FULLNAME</ogc:PropertyName>
             </Label>
             <Font>
               <CssParameter name="font-family">Times New Roman</CssParameter>
               <CssParameter name="font-style">Normal</CssParameter>
               <CssParameter name="font-size">10</CssParameter>
             </Font>
             <Fill>
               <CssParameter name="fill">#000000</CssParameter>
               <CssParameter name="fill-opacity">1</CssParameter>
             </Fill>
           </TextSymbolizer>
         </Rule>

Any suggestions on this would be much appreciated.

cooperatively,
tom farnham

Tom Farnham ha scritto:

I'm not sure if this is the best channel for stylizing questions, please forgive me if it isn't.

I am trying to style a map (obviously). This is a sample image of the issue I am having:

http://unioncab.com/badmap.png

That's the typical highway style issue. All black lines have to
be drawn first, and all grey ones after. Use two separate feature
type styles in the same style to achieve that, just like in:
http://geo.openplans.org:8080/geoserver/styles/tiger_roads.sld

Hope this helps
Cheers
Andrea