|
From: Scott P. <sco...@ho...> - 2006-08-30 18:55:45
|
<html>Brent,<br><br>I tried adding the tag you suggested and this did not solve the problem. Does anyone else have any ideas?<br><br>Thanks,<br>Scott<br><br><br><b></b><blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">From: Brent Owens <bre...@gm...><br>To: Scott Pezanowski <sco...@ho...><br>CC: geo...@li...<br>Subject: Re: [Geoserver-users] multiple textsymbolizers within the same rule<br>Date: Wed, 30 Aug 2006 11:45:45 -0700<br><br>I'm pretty sure you can have multiple text symbolizers in the same rule,<br>and looking at the code it does appear to be true.<br>But what might be happening is that the labeling will hide colliding<br>labels, so you don't get a cluttered map. You can make sure your text<br>symbolizer vendor option<br><VendorOption name="spaceAround">0</VendorOption><br>is set to zero.<br>But still, looking at the code, I think that only one is rendered.<br>Can anyone else shed some more light on the LabelCache and<br>StreamingRenderer?<br><br>Brent Owens<br>(The Open Planning Project)<br><br><br><br>Scott Pezanowski wrote:<br> > Hi,<br> ><br> > We are trying to display a symbol for points from a truetype font<br> > through geoserver. The symbol is actually composed of three characters<br> > from the font, laid on top of each other. To do this with geoserver,<br> > we have tried creating three different rules for each character and<br> > also three different textsymbolizers for the same rule (as seen<br> > below). In both cases, the problem is that geoserver only displays the<br> > last character listed in the sld. We thought that perhaps the last<br> > character was blocking out the others but this does not seem to be the<br> > case. First, is what I'm trying to do possible with sld? Second, can<br> > anyone see what I am doing wrong?<br> ><br> > We could create an image of the symbol and use that; However, I do not<br> > see that as the ideal solution.<br> ><br> > Thanks in advance for any help,<br> > Scott<br> ><br> ><br> > <sld:Rule><br> > <sld:Name>L-PLNT-TXST-DECI</sld:Name><br> > <sld:Title>L-PLNT-TXST-DECI</sld:Title><br> > <ogc:Filter><br> > <ogc:PropertyIsEqualTo><br> > <ogc:PropertyName>layer</ogc:PropertyName><br> > <ogc:Literal>L-PLNT-TXST-DECI</ogc:Literal><br> > </ogc:PropertyIsEqualTo><br> > </ogc:Filter><br> > <TextSymbolizer><br> > <label>õ</label><br> > <font><br> > <CssParameter name="font-family">ESRI US MUTCD 3</CssParameter><br> > <CssParameter name="font-size">18</CssParameter><br> > </font><br> > <Fill><br> > <CssParameter name="fill">#969696</CssParameter><br> > </Fill><br> > <LabelPlacement><br> > <PointPlacement><br> > <AnchorPoint><br> > <AnchorPointX>0.5</AnchorPointX><br> > <AnchorPointY>0.5</AnchorPointY><br> > </AnchorPoint><br> > </PointPlacement><br> > </LabelPlacement><br> > </TextSymbolizer><br> > <TextSymbolizer><br> > <label>ô</label><br> > <font><br> > <CssParameter name="font-family">ESRI US MUTCD 3</CssParameter><br> > <CssParameter name="font-size">18</CssParameter><br> > </font><br> > <Fill><br> > <CssParameter name="fill">#00A639</CssParameter><br> > </Fill><br> > <LabelPlacement><br> > <PointPlacement><br> > <AnchorPoint><br> > <AnchorPointX>0.5</AnchorPointX><br> > <AnchorPointY>0.5</AnchorPointY><br> > </AnchorPoint><br> > </PointPlacement><br> > </LabelPlacement><br> > </TextSymbolizer><br> > <TextSymbolizer><br> > <label>ó</label><br> > <font><br> > <CssParameter name="font-family">ESRI US MUTCD 3</CssParameter><br> > <CssParameter name="font-size">18</CssParameter><br> > </font><br> > <Fill><br> > <CssParameter name="fill">#9D4F21</CssParameter><br> > </Fill><br> > <LabelPlacement><br> > <PointPlacement><br> > <AnchorPoint><br> > <AnchorPointX>0.5</AnchorPointX><br> > <AnchorPointY>0.5</AnchorPointY><br> > </AnchorPoint><br> > </PointPlacement><br> > </LabelPlacement><br> > </TextSymbolizer><br> > </sld:Rule><br> > ------------------------------------------------------------------------<br> ><br> > -------------------------------------------------------------------------<br> > Using Tomcat but need to do more? Need to support web services, security?<br> > Get stuff done quickly with pre-integrated technology to make your job easier<br> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br> > ------------------------------------------------------------------------<br> ><br> > _______________________________________________<br> > Geoserver-users mailing list<br> > Geo...@li...<br> > https://lists.sourceforge.net/lists/listinfo/geoserver-users<br> ><br><br>-------------------------------------------------------------------------<br>Using Tomcat but need to do more? Need to support web services, security?<br>Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br>_______________________________________________<br>Geoserver-users mailing list<br>Geo...@li...<br>https://lists.sourceforge.net/lists/listinfo/geoserver-users </sco...@ho...></bre...@gm...></blockquote></html> |