[Mapserver-users] DBF Leading Spaces

Shannon Scott sscott at gwi.net
Mon Apr 28 08:36:49 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_00BF_01C30D7A.74CDEE50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
I have been in an effort to make some center justified text labels.
I could not find documentation describing mapfile keywords that could =
achieve this,  and my posts to the list on the 'Center Justify' topic =
were not responded to.

So we wrote a program that goes through a DBF column and adds spaces and =
a "WRAP" character at the appropriate positions for the center justified =
effect.

The problem is that sometimes to get center justification the first word =
must have spaces added to the beginning of the word.=20
For Example consider the words 'Center Justification'.
    Center
Justification
The word center has four spaces at the beginning.

It seems that spaces are trimmed from the beginning of a text field when =
the DBF is read by MN MapServer.  Is this intentional?
I have opened the DBF in other apps ( MS Access ) and the spaces are =
present. =20
Is this a bug in MN MapServer? =20
Any incite is greatly appreciated.
Thank You
Shannon




------=_NextPart_000_00BF_01C30D7A.74CDEE50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have been in an effort to make some =
center=20
justified text labels.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I could not find documentation =
describing mapfile=20
keywords that could achieve this,  and my posts to the list on the =
'Center=20
Justify' topic were not responded to.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>So we wrote a program that goes through =
a DBF=20
column and adds spaces and a "WRAP" character at the appropriate =
positions for=20
the center justified effect.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The problem is that sometimes to get =
center=20
justification the first word must have spaces added to the beginning of =
the=20
word. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For Example consider the =
words <FONT=20
face=3DArial size=3D2>'Center </FONT><FONT face=3DArial=20
size=3D2>Justification'.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>    Center</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Justification</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The word center has four spaces at the=20
beginning.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>It seems that spaces are trimmed from =
the beginning=20
of a text field when the DBF is read by MN MapServer.  Is this =

intentional?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have opened the DBF in other apps ( =
MS Access )=20
and the spaces are present.  </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is this a bug in MN MapServer?  =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any incite is greatly =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank You</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Shannon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>

------=_NextPart_000_00BF_01C30D7A.74CDEE50--




More information about the MapServer-users mailing list