Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] help

There are some string concatenation functions in that list; but really you want to do two things :-)
- Make friends with Gabriel who is good at this stuff :-)
- Help us update to the "Symbology Encoding 1.1" specification where they have formally defined all the nice string formating functions (http://www.opengeospatial.org/standards/symbol)

Cheers,
Jody
PS. Please let me know if you get the strSubstring stuff to work; you can email your working example to the uDig Users list and we will all benifit. Perhaps we could start an "SLD" tips and tricks page. The GeoServer community already has such a page - but I do not have the link right now.

Nicholas I wrote:
Thank you Mr.Jody.

Is there any text spacing facility in sld?

-Nicholas I

On Fri, Sep 5, 2008 at 3:29 AM, Jody Garnett <jgarnett@xxxxxxxxxxxxxxx <mailto:jgarnett@xxxxxxxxxxxxxxx>> wrote:

    That is a tough problem for SLD to handle; something that Gabriel
    Roldan has recently had some ideas about. For now I would
    recommend creating ...
    - two TextSymbolizers; with offsets so they appear on different
    lines...
    - the first symbolizer would be using the expression:

    strSubstring( NAME, 0, strIndexOf( NAME, " " ) )

    - The second would be using :

    strSubstring( NAME, strIndexOf( NAME, " " ) + 1 )

    The function list I am referring to is here:
    -
    http://udig.refractions.net/confluence/display/EN/Common+Query+Language

    You can translate the CQL expressions to the SLD / Filter syntax
    as needed.
    Jody

    Nicholas I wrote:

        Hi ,
           I have point layer where the value of the name is of 80
        characters for example South Island, i just want to specify if
        there are two words separated by a space then create a new
        line and make the second word appear down.

         I want the out put to be like below, not both the words on
        the same line.

          South
          Island

         Is there any way of doing it in sld level, may be using some
        sld tags or any other way.

        thank you
        -Nicholas I
        ------------------------------------------------------------------------

        _______________________________________________
        udig-users mailing list
        udig-users@xxxxxxxxxxxxxxxxxxxxx
        <mailto:udig-users@xxxxxxxxxxxxxxxxxxxxx>
        http://lists.refractions.net/mailman/listinfo/udig-users





Back to the top