Mapinfo labels
Herman Teo
hermawan_s at HOTMAIL.COM
Fri Jan 21 11:52:22 PST 2005
Hi. I am in the process of trying to display Mapinfo .tab maps with the
labels on it using mapserver. I am able to display the street lines just
fine but I'm having a hard time with the labels. Could someone assist me in
this? Thanks a lot.
Herman
Attached .map file:
#
# Start of map file
#
NAME I_ST
STATUS ON
SIZE 500 500
SYMBOLSET etc/symbols_mapinfo.sym
EXTENT 106.686319 -6.189152 106.891758 -6.096436
UNITS DD
IMAGECOLOR 255 255 255
FONTSET etc/fonts.txt
#
# Start of web interface definition
#
WEB
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
# LOG "/tmp/gmap.log"
TEMPLATE demo.html
METADATA
"TITLE" "MapServer Test"
END
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS OFF
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 4
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 3
STATUS ON
END
#
# Querymap settings
#
# Style is one of NORMAL, HILITE, or SELECTED
#
QUERYMAP
STYLE HILITE
COLOR 255 0 0
END
#
# Start of layer definitions
#
LAYER
NAME Street_Map
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:\Indo\INDON_ST.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Street_Map"
END
END # Layer
LAYER
NAME Street_Name
STATUS DEFAULT
TYPE ANNOTATION
CONNECTIONTYPE OGR
CONNECTION "C:\Indo\INDON_ST.TAB"
STYLEITEM "AUTO"
CLASS
NAME "Street_Name"
END
END
END #map
More information about the MapServer-users
mailing list