[Mapserver-users] Labels

João Paulo M. Claro jpmclaro at yahoo.com.br
Mon Mar 17 15:11:32 EST 2003


Jim,

With its tip it was good, more observes that labels is under the streets in
the crossings. This is my main problem.

Link:
http://200.231.117.203/cgi-bin/mapserv?mode=browse&zoomdir=1&zoomsize=1&imgx
y=-46.65317+-23.55735&imgext=-46.65796623+-23.56054931+-46.64837377+-23.5541
5069&map=c:/apps/maplab-2.0rc3/itasca/municipios.map&program=/cgi-bin/mapser
v&map_web_imagepath=/tmp/ms_tmp/&map_web_imageurl=/ms_tmp/&img.x=300&img.y=2
00

Thanks

João Paulo



----- Original Message -----
From: "James Jefferson" <jjeffers at aprsworld.net>
To: "João Paulo M. Claro" <jpmclaro at yahoo.com.br>
Sent: Monday, March 17, 2003 10:55 AM
Subject: Re: [Mapserver-users] Labels


> Well, it looks like the labels are appearing above the street, but the
> problem is that you are getting labels that are too close together and are
> therefore overlapping. Try doing this:
>
> MINFEATURESIZE 50
> MINDISTANCE 150
>
> That should go in the label part.
>
> -Jim
>
> On Monday 17 March 2003 01:53 pm, you wrote:
> > Dear James,
> >
> > The problem persists, follows below the configuration that I am using,
and
> > link with the resultant map. Please, it sees if it can help me.
> >
> > LAYER
> > NAME "Ruas_sp"
> > STATUS DEFAULT
> > TYPE LINE
> > CONNECTIONTYPE OGR
> > CONNECTION "../mapa/Data/SP/Rua.TAB"
> > UNITS METERS
> > SIZEUNITS PIXELS
> > MINSCALE 0
> > MAXSCALE 10
> > LABELITEM "Rua"
> > LABELCACHE OFF
> > POSTLABELCACHE TRUE
> > TOLERANCE 7
> > TOLERANCEUNITS PIXELS
> > TEMPLATE "ttt.html"
> >     CLASS
> >         NAME "Ruas_sp"
> >         MINSCALE 0
> >         MAXSCALE 10
> >         SYMBOL 7
> >         COLOR 0 0 0
> >         SIZE 5
> >         MINSIZE 1
> >         MAXSIZE 100
> >         OVERLAYSYMBOL 7
> >         OVERLAYCOLOR 255 255 255
> >         OVERLAYSIZE 3
> >         LABEL
> >             TYPE TRUETYPE
> >             FONT "arial"
> >             SIZE 8
> >             MINSIZE 4
> >             MAXSIZE 256
> >             POSITION UC
> >             OFFSET 3 3
> >             ANGLE AUTO
> >             BUFFER 7
> >             MINDISTANCE 10
> >             MINFEATURESIZE AUTO
> >             COLOR 0 0 0
> >             SHADOWCOLOR 0 0 0
> >             SHADOWSIZE 0 0
> >             PARTIALS FALSE
> >         END
> >     END
> > END
> >
> >
http://200.231.117.203/cgi-bin/mapserv?mode=browse&zoomdir=1&zoomsize=1&img
>
>xy=-46.65317+-23.55735&imgext=-46.65796623+-23.56054931+-46.64837377+-23.55
4
>
>15069&map=c:/apps/maplab-2.0rc3/itasca/municipios.map&program=/cgi-bin/maps
e
>
>rv&map_web_imagepath=/tmp/ms_tmp/&map_web_imageurl=/ms_tmp/&img.x=300&img.y
=
> >200
> >
> >
> > Thanks,
> >
> > João Paulo.
> >
> >
> >
> > ----- Original Message -----
> > From: "James Jefferson" <jjeffers at aprsworld.net>
> > To: "João Paulo M. Claro" <jpmclaro at yahoo.com.br>
> > Sent: Monday, March 17, 2003 9:35 AM
> > Subject: Re: [Mapserver-users] Labels
> >
> > > Use the POSITION keyword. To make it centered and above the line, you
> > > would use
> > >
> > > POSITION UC
> > >
> > > here is an example of how I use it:
> > >
> > >         # Rural principal arteries, Urban Principal Arteries
> > >         CLASS
> > >                 EXPRESSION ( [FEAT_CLASS] = 2 OR [FEAT_CLASS] = 14 )
> > >                 COLOR 128 128 128
> > >                 LABEL
> > >                         MINFEATURESIZE 50
> > >                         MINDISTANCE 150
> > >                         TYPE TRUETYPE
> > >                         FONT "verdana"
> > >                         SIZE 8
> > >                         COLOR 0 0 0
> > >                         POSITION UC     # above line
> > >                         ANGLE AUTO
> > >                 END
> > >         END
> > >
> > > On Monday 17 March 2003 11:26 am, you wrote:
> > > > Hi folks,
> > > >
> > > > I am with problems in my labels, they appear in low of the lines of
the
> > > > streets, somebody knows as to decide this problem?
> > > >
> > > > Thanks,
> > > >
> > > > João Paulo

_______________________________________________________________________
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/




More information about the mapserver-users mailing list