Hi All,
The following SLD works, but wondered if this is the best
method. I'm using and externalGraphic (SVG in this case) for highway
shields. Short of setting the opacity of the label fill to 0, I can't
figure out how to avoid both the shields and a label showing up, i.e.:<?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> <NamedLayer> <Name>odot_us_routes</Name> <UserStyle> <Title>odot_us_routes</Title> <Abstract>Symbolization of us routes</Abstract> <FeatureTypeStyle> <Rule> <LineSymbolizer> <Stroke> <CssParameter name="stroke"> <ogc:Literal>#FF6C6C</ogc:Literal> </CssParameter> <CssParameter name="stroke-linecap"> <ogc:Literal>butt</ogc:Literal> </CssParameter> <CssParameter name="stroke-linejoin"> <ogc:Literal>miter</ogc:Literal> </CssParameter> <CssParameter name="stroke-opacity"> <ogc:Literal>0.4</ogc:Literal> </CssParameter> <CssParameter name="stroke-width"> <ogc:Literal>2.0</ogc:Literal> </CssParameter> <CssParameter name="stroke-dashoffset"> <ogc:Literal>0.0</ogc:Literal> </CssParameter> </Stroke> </LineSymbolizer> <TextSymbolizer> <Label> <PropertyName xmlns="http://www.opengis.net/ogc">rt_street_</PropertyName> </Label> <Font> <CssParameter name="font-family">Arial</CssParameter> <CssParameter name="font-size">50</CssParameter> </Font> <Fill> <CssParameter name="fill">#000000</CssParameter> <CssParameter name="fill-opacity">0.0</CssParameter> </Fill> <Graphic> <ExternalGraphic> <OnlineResource xlink:href="road_shields/${rt_street_}.svg"/> <Format>image/svg+xml</Format> </ExternalGraphic> <Size>16</Size> </Graphic> <Priority>100000</Priority> <VendorOption name="spaceAround">17</VendorOption> <VendorOption name="group">true</VendorOption> <VendorOption name="labelObstacle">true</VendorOption> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> Thanks, Steve http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather Geographic Information Systems (GIS) Manager (216) 635-3243 [email protected] <http://www.clemetparks.com/> clevelandmetroparks.com
<<image001.png>>
------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
