Mapinfo labels
Flavio Hendry
flavio at TYDAC.CH
Sat Jan 22 02:37:15 PST 2005
hi herman
as follows (see labelitem, labelangleitem):
LAYER
NAME "Grundstücksnummern GB"
TYPE ANNOTATION
MINSCALE 0
MAXSCALE 2000
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "av/GP_Grundstuecksnummern_GB.TAB"
LABELITEM "OGR:LabelText"
LABELANGLEITEM "OGR:LabelAngle"
SIZEUNITS meters
CLASS
NAME "GP_Grundstuecksnummern_GB"
COLOR -1 -1 -1
LABEL
ANTIALIAS TRUE
TYPE TRUETYPE
FONT arial
POSITION cc
SIZE 2
COLOR 0 0 0
END
END
PROJECTION
"init=world:CH1903"
END
END
Mit freundlichem Gruss / Best Regards
Flavio Hendry
----------------------------------------------------------------
TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual
----------------------------------------------------------------
############ Mit freundlichen Gruessen / Kind Regards
############ mailto:flavio at tydac.ch
############ TYDAC AG - http://www.tydac.ch
#### #### Geographic Information Solutions
#### #### Luternauweg 12 -- CH-3006 Bern
############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------
-----Original Message-----
From: Herman Teo <hermawan_s at HOTMAIL.COM>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Date: Fri, 21 Jan 2005 13:52:22 -0600
Subject: [UMN_MAPSERVER-USERS] Mapinfo labels
> 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