[Mapserver-users] Text from MapInfo file
James Anderson
james at danisat.net
Wed Feb 19 03:23:47 PST 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to display a mapinfo layer =
that has=20
text. The layer is a pair of MIF/MID files. I have had =
other=20
layers like this setup fine, but this specific layer is giving me=20
trouble. T</FONT><FONT face=3DArial size=3D2>he mif =
file looks like=20
this</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Version 300<BR>Charset =
"WindowsLatin1"<BR>Delimiter=20
","<BR> CoordSys Earth Projection 1, 104<BR>Columns 1<BR> =
blank=20
Char(1)<BR>Data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR> " AL =
AWIR=20
ROAD"<BR> 55.41267248 25.17651943 55.42005671=20
25.17696943<BR> Font ("",0,0,0)<BR> =
Angle=20
349.5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR> " OUD =
METHA=20
ROAD"<BR> 55.30331893 25.19405686 55.34282935=20
25.19450686<BR> Font ("",0,0,0)<BR> =
Angle=20
281.8</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Text<BR> " RAS AL =
KHOR=20
ROAD"<BR> 55.34043751 25.18511975 55.34088752=20
25.18556975<BR> Font ("",0,0,0)<BR> =
Angle=20
1.8</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></DIV>
<DIV><FONT face=3DArial size=3D2>.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The mid file normally contains the =
text. =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. Can anyone help ??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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. Can anyone help ???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
"Minor_Roads_text"<BR> TYPE ANNOTATION<BR> =20
CONNECTIONTYPE OGR<BR> CONNECTION "C:\wcmap\Nairobi=20
shps\Minor_Roads.tab"<BR> STATUS DEFAULT<BR> =
LABELITEM=20
"Road3"<BR> CLASS<BR> COLOR 0 =
0=20
0<BR> =20
LABEL<BR> SIZE=20
8<BR> TYPE =
TRUETYPE<BR># =20
TYPE BITMAP<BR># SIZE=20
small<BR> COLOR 0 0=20
0<BR> SHADOWCOLOR 255 =
255=20
230<BR> SHADOWSIZE 1=20
1<BR> FONT=20
arial<BR> ANTIALIAS=20
TRUE<BR> ANGLE=20
AUTO<BR> POSITION=20
CC<BR> BUFFER=20
10<BR> MINDISTANCE=20
20<BR> END<BR> =
END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><BR></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>James.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0042_01C2D81A.2225B100--
More information about the MapServer-users
mailing list