[Mapserver-users] Text from MapInfo file

James Anderson james at danisat.net
Wed Feb 19 06:23:47 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0042_01C2D81A.2225B100
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


Hi,

I am trying to display a mapinfo layer that has text. The layer is a =
pair of  MIF/MID files.  I have had other layers like this setup fine, =
but this specific layer is giving me trouble.   The mif file looks like =
this


Version 300
Charset "WindowsLatin1"
Delimiter ","
 CoordSys Earth Projection 1, 104
Columns 1
  blank Char(1)
Data

Text
    "  AL AWIR ROAD"
    55.41267248 25.17651943 55.42005671 25.17696943
    Font ("",0,0,0)
    Angle 349.5

Text
    "  OUD METHA ROAD"
    55.30331893 25.19405686 55.34282935 25.19450686
    Font ("",0,0,0)
    Angle 281.8

Text
    " RAS AL KHOR ROAD"
    55.34043751 25.18511975 55.34088752 25.18556975
    Font ("",0,0,0)
    Angle 1.8

.
.
.
.

The mid file normally contains the text.  When I try and display a layer =
where the mid file has the text, I can setup the layer ok, but where all =
the text is in the mif file as shown above, I am unshure how to =
represent the layer.   Can anyone help ??

Here is another layer from a mapserver map file, the text for this layer =
displays fine, but when I use this method for the mif file above, I get =
nothing.  Can anyone help ???

LAYER
   NAME "Minor_Roads_text"
   TYPE ANNOTATION
   CONNECTIONTYPE OGR
   CONNECTION "C:\wcmap\Nairobi shps\Minor_Roads.tab"
   STATUS DEFAULT
   LABELITEM "Road3"
   CLASS
      COLOR 0 0 0
      LABEL
         SIZE 8
         TYPE TRUETYPE
#  TYPE BITMAP
#  SIZE small
         COLOR 0 0 0
         SHADOWCOLOR 255 255 230
         SHADOWSIZE 1 1
         FONT arial
         ANTIALIAS TRUE
         ANGLE AUTO
         POSITION CC
         BUFFER 10
         MINDISTANCE 20
      END
   END
END




Thanks,

James.


------=_NextPart_000_0042_01C2D81A.2225B100
Content-Type: text/html;
	charset="Windows-1252"
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=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to display a mapinfo layer =
that has=20
text.&nbsp;The layer is a pair of &nbsp;MIF/MID files.&nbsp; I have had =
other=20
layers like this setup fine, but this specific layer is giving me=20
trouble.&nbsp;&nbsp;&nbsp;T</FONT><FONT face=3DArial size=3D2>he mif =
file looks like=20
this</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Version 300<BR>Charset =
"WindowsLatin1"<BR>Delimiter=20
","<BR>&nbsp;CoordSys Earth Projection 1, 104<BR>Columns 1<BR>&nbsp; =
blank=20
Char(1)<BR>Data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR>&nbsp;&nbsp;&nbsp; "&nbsp; AL =
AWIR=20
ROAD"<BR>&nbsp;&nbsp;&nbsp; 55.41267248 25.17651943 55.42005671=20
25.17696943<BR>&nbsp;&nbsp;&nbsp; Font ("",0,0,0)<BR>&nbsp;&nbsp;&nbsp; =
Angle=20
349.5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR>&nbsp;&nbsp;&nbsp; "&nbsp; OUD =
METHA=20
ROAD"<BR>&nbsp;&nbsp;&nbsp; 55.30331893 25.19405686 55.34282935=20
25.19450686<BR>&nbsp;&nbsp;&nbsp; Font ("",0,0,0)<BR>&nbsp;&nbsp;&nbsp; =
Angle=20
281.8</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR>&nbsp;&nbsp;&nbsp; " RAS AL =
KHOR=20
ROAD"<BR>&nbsp;&nbsp;&nbsp; 55.34043751 25.18511975 55.34088752=20
25.18556975<BR>&nbsp;&nbsp;&nbsp; Font ("",0,0,0)<BR>&nbsp;&nbsp;&nbsp; =
Angle=20
1.8</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>
<DIV><FONT face=3DArial size=3D2>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The&nbsp;mid file normally contains the =
text.&nbsp;=20
When I try and display a layer where the mid file has the text, I can =
setup the=20
layer ok, but where all the text is in the mif file as shown above, I am =
unshure=20
how to represent the layer.&nbsp;&nbsp; Can anyone help ??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is another layer from a mapserver =
map file,=20
the text for this layer displays fine, but when I use this method for =
the mif=20
file above, I get nothing.&nbsp; Can anyone help ???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp;&nbsp; NAME=20
"Minor_Roads_text"<BR>&nbsp;&nbsp; TYPE ANNOTATION<BR>&nbsp;&nbsp;=20
CONNECTIONTYPE OGR<BR>&nbsp;&nbsp; CONNECTION "C:\wcmap\Nairobi=20
shps\Minor_Roads.tab"<BR>&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp; =
LABELITEM=20
"Road3"<BR>&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 =
0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
8<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE =
TRUETYPE<BR>#&nbsp;=20
TYPE BITMAP<BR>#&nbsp; SIZE=20
small<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWCOLOR 255 =
255=20
230<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWSIZE 1=20
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
arial<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS=20
TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE=20
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER=20
10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE=20
20<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp; =
END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>James.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0042_01C2D81A.2225B100--




More information about the mapserver-users mailing list