Hi,
Looks like you're missing the "AS" part to give the field a name. In
the comment I called it "name_stretched", which is what your
TextSymbolizer name paramter needs to be:
... REGEXP_REPLACE(UPPER(name), '(.)', E'\\1\xC2\xA0\xC2\xA0', 'g')
AS name_stretched ...
and:
<TextSymbolizer name="name_stretched" ...
-mike.
On Dec 4, 2008, at 7:28 AM, spillocaster wrote:
>
> Hi,
>
> now I tried http://trac.mapnik.org/ticket/121#comment:5 Michal's
> comment
> (per se a great idea!), but I have some trouble with the request in
> my XML.
>
> In Postgresql the request
> "select the_geom,id,REGEXP_REPLACE(UPPER(name), '(.)',
> E'\\1\xC2\xA0\xC2\xA0', 'g') from lines;"
> works fine, but in my XML I get no results with the same request:
> <Parameter name="table">(select
> the_geom,id,REGEXP_REPLACE(UPPER(name),
> '(.)', E'\\1\xC2\xA0\xC2\xA0', 'g') from lines) as lines</Parameter>
>
> Are there any limitations in XML I don't know? Has anyone an idea?
>
> regards,
> Jürgen
>
>
> spillocaster wrote:
>>
>> Hi,
>>
>> I was just searching for an option in the textsymbolizer to adjust
>> the
>> appearance of my labels. I want to set the character spacing to a
>> user-defined value for labeling a wide area.
>> I found this ticket: http://trac.mapnik.org/ticket/121
>> http://trac.mapnik.org/ticket/121 , but I'm not sure, if Dane and
>> Michal
>> were talking about the same thing. If I understand it right, then the
>> buffer feature in mapserver creates a buffer around the whole label
>> and
>> not around every single letter.
>>
>> These typographical setting could also be useful for other users or
>> has
>> someone already a workaround to get the same result?
>>
>> Perhaps these settings could also be useful:
>> - all labels in caps or all in lowercase
>> - word spacing
>> - http://trac.mapnik.org/ticket/131 http://trac.mapnik.org/ticket/
>> 131
>> (- something else?)
>>
>> cheers
>> Jürgen
>>
>
> --
> View this message in context:
> http://www.nabble.com/Formatting-labels-tp20187577p20835721.html
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
----------------------------------------------------------------
michal migurski- [EMAIL PROTECTED]
415.558.1610
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users