[Mapserver-users] centering labels

Jim Burnett r000t at adelphia.net
Fri Jan 31 09:27:37 PST 2003


Ok I tried that and it got a little better but here is another screenshot.
They still seem scattered
Of and FYI I turn this layer ON dynamically. Do I need to do something with
position?
http://www.freegishosting.com/tmp/1044034021.jpg

or just goto

http://www.freegishosting.com/va_washington.php

to paly with it. Make sure you turn on the parcel label layer.


-Jim
LAYER
  NAME ParcelLabels
  TYPE polygon
  STATUS Off
  DATA parcels
 LABELITEM DXF_TEXT
 CLASSITEM 'DXF_TEXT'
 CLASS
    EXPRESSION /./
    NAME 'featureid'
     #COLOR 0 0 0
     OUTLINECOLOR 0 0 0
    NAME 'streetnameid'
     LABEL
        PARTIALS true
      COLOR 255 255 255
      TYPE bitmap
      POSITION auto
      PARTIALS FALSE
     END
  END
TOLERANCE 0
END




----- Original Message -----
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "Jim Burnett" <r000t at adelphia.net>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Friday, January 31, 2003 11:10 AM
Subject: Re: [Mapserver-users] centering labels


> > Jim Burnett wrote:
> >
> > I'm trying to get my labels to center on my parcel layer. The layer is
> > a polygon layer.
> > Here is my layer def. And a screenshot of what is happening.
> >
> > LAYER
> >   NAME ParcelLabels
> >   TYPE line
>
> You write that the layer is a polygon layer but your LAYER defn uses
> TYPE LINE, so the labels are placed along the lines (polygon
> boundaries).  Changing to TYPE POLYGON will probably do what you need:
> place the labels at the polygon centers.
>
> Daniel
> --
> ------------------------------------------------------------
>  Daniel Morissette               morissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list