[ka-Map-users] Increased Metabuffer results in multiple lables
Melanie Ritzau
MelanieRitz78 at web.de
Wed May 9 18:01:59 EDT 2007
Hi Mark,
thanks for your help !!
My problematic features are point-features - not polygons. Every point that falls into the buffer-zone is labeled twice because mapserver renders two tiles that contain
that point and on both tiles the point is labeled. If kamap! displays both tiles you can see two lables - one left and one right to the point.
In tile.php is a part that tells mapserver not to place labels into bufferzone - but it should also tell mapserver not to render labels for points that fall into this buffer-zone.
Setting the metabuffersize to 0 solves the label-problem but than I get artefacts on symbols that are at the edge of tiles.
Maybe it would help to tell mapserver to draw labels only to the right or left of the point but that would disturb the whole label-layout and it is not an option for me.
Any ideas ?
AFAIK it is not possible to configure a mapfile that way, that features at the edge of a tile don't get labeled. Right ?
Thanks again !
Mel
> -----Ursprüngliche Nachricht-----
> Von: Mark Torrance <marktorrance at yahoo.com>
> Gesendet: 09.05.07 19:00:50
> An: Melanie Ritzau <MelanieRitz78 at web.de>
> CC: ka-map-users at lists.maptools.org
> Betreff: Re: [ka-Map-users] Increased Metabuffer results in multiple lables
>
> If you tell mapserver to label the points which are centroids of each
> polygon feature, rather than having it label the polygons themselves,
> then it will not get confused at the edges. Each point (centroid)
> should fall in just one tile.
>
> --Mark
>
> On May 9, 2007, at 4:58 AM, Melanie Ritzau wrote:
>
> > Hi list,
> >
> > I increased the $metaBuffer size in config.php from 0 to 2 to avoid
> > rendering issues along the edge of the map image. The problem is
> > now that a lot of features (actually all that fall into the buffer
> > zone) are now labled twice. Is there any way to tell mapserver not
> > render lables into this buffer-zone ? Or any other solution ?
> >
> > Thank you very much for any hints,
> >
> > Regards,
> > Mel
> > _______________________________________________________________
> > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> >
> > _______________________________________________
> > ka-Map-users mailing list
> > ka-Map-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
>
>
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
More information about the ka-Map-users
mailing list