Hi,
Does anyone know if it possible to manage the text alignment in a label that
is a concatenation of different attributes in an SLD while using line breaks
with 


?

 I have tried to put the <Cssparameter..> everywere (I think) but always get
validation errors. See my example below. In my case I would like to center
the text, end upp with a label looking like:

MARCUSA
   100
   010


// Marcus

===================================
          <TextSymbolizer>
            <Label>
              <ogc:PropertyName>NAMEOFAREA</ogc:PropertyName>< ![CDATA[
]]><ogc:PropertyName>UPPER</ogc:PropertyName>< ![CDATA[
]]><ogc:PropertyName>LOWER</ogc:PropertyName>
            </Label>
            
              *<CssParameter name="text-align">Center</CssParameter>*
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-style">Normal</CssParameter>
              <CssParameter name="font-size">10</CssParameter>
            
      <Halo>
        <Radius>
          <ogc:Literal>2</ogc:Literal>
        </Radius>
        <Fill>
          <CssParameter name="fill">#D3D3D3</CssParameter>
        </Fill>
      </Halo>
            <Fill>
              <CssParameter name="fill">#0000CC</CssParameter>
              <CssParameter name="fill-opacity">1</CssParameter>
            </Fill>
          </TextSymbolizer>


( Note that the CDATA-element above has whitespaces just to visualize them
in this post. )

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Css-parameter-text-align-in-SLD-tp4648615p4648615.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to