Unable to display Street Labels from Mapinfo TAB file
A Sharif
sharif at SATELINX.COM
Mon Feb 7 13:08:34 PST 2005
Hi
I am using mapserver 4.4 (cgi) to display MapInfo TAB files. I am having no
luck displaying the Street Labels, although I can display the street layers
without any problem.
I have attached the map file. I am using true type fonts and put the fonts
in a subdirectory. The map displays perfectly except for the street labels.
MAP
NAME QUEBEC1
STATUS ON
IMAGETYPE PNG
SYMBOLSET symbols_mapinfo.sym
EXTENT -74 45 -73 46
SIZE 600 600
SHAPEPATH "data/qc"
UNITS METERS
IMAGECOLOR 255 255 255
FONTSET fonts/font.list
WEB
TEMPLATE "bbb.html"
IMAGEPATH "/var/www/html/tmp/"
IMAGEURL "/tmp/"
END
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 300 4
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 3
STATUS ON
END
LAYER
NAME quebec_streets
MINSCALE 0
MAXSCALE 0.5
CONNECTIONTYPE OGR
CONNECTION "qcd.tab"
STATUS DEFAULT
TYPE LINE
PROJECTION
"proj=latlong"
END
STYLEITEM "AUTO"
CLASS
NAME "Quebec Streets"
END
END
LAYER
DEBUG ON
NAME quebec_street_names
# MINSCALE 0
# MAXSCALE 0.3
CONNECTIONTYPE OGR
CONNECTION "qcd.tab"
STATUS DEFAULT
LABELITEM "Street"
TYPE ANNOTATION
STYLEITEM "AUTO"
CLASS
END
END
END # end of map file/object
More information about the MapServer-users
mailing list