Unable to display Street Labels from Mapinfo TAB file {Scanned} {Scanned}

Siki Zoltan siki at AGT.BME.HU
Tue Feb 8 01:22:02 PST 2005


Hi,

As far as see your mapinfo layer contains street center lines and
street names as attributes. This case the staleitem auto doesn't work.
Instead you should give more detailed class definition:

CLASS
        LABEL
                TYPE TRUTYPE
                FONT ...
                ANGLE AUTO
                SIZE ...
                COLOR ...
        END
END

ANGLE AUTO will rotate the labels along the street line.

Zoltan

On Mon, 7 Feb 2005, A Sharif wrote:

> 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