trim space
János Gonzales
janos.gonzales at GMAIL.COM
Wed Apr 18 09:21:23 PDT 2007
I think you can use a regular expression on that. See regex under
http://mapserver.gis.umn.edu/docs/howto/msexpressions
On 4/18/07, Ernesto Vega <ernesvega at gmail.com> wrote:
> Hi everyone. I have a small problem and i hope you can help me to find
> out what can be done for it. I have a shapefile with many fields and
> one of them is like this:
>
> ---------------------------
> Terizq: Real (8.0)
> ---------------------------
>
> The fact is that the actual data on the shapefile does not have that
> amount of digits, so i get a large space before the number on the
> image generated by mapserver.
>
> So here is the question: How can i trim the data on a LABEL defined
> like this (the field "Iniizq" has the same definition as the one i
> described)
>
> -----------------------------------------------------------------------
> TEXT ([Iniizq]-[Terizq] [Nombre])
> EXPRESSION ([Iniizq] > 0 OR [Terizq] > 0)
> ---------------------------------------------------------------------
>
> If you can let me know where to look the answer i would appreciate
>
> thanks in advance
>
More information about the MapServer-users
mailing list