[ka-Map-users] Increased Metabuffer results in multiple lables
MelanieRitz78 at web.de
Thu May 10 16:54:44 EDT 2007
Thanks for your suggestion,
although I have not found a way to stop the symbol artifacts appearing when MetaBuffer is set to zero. When a Point-Symbol (e.g. just a red circle) lies exactly at the edge of a rendered Meta-Tile - the red circle is drawn but also a red (unwanted) horizontal line that starts at the red symbol. This is a part of my mapfile:
I can't see any mistakes:
SHADOWCOLOR 0 0 0
SHADOWSIZE 3 3
COLOR 255 255 255
OUTLINECOLOR 0 0 0
STYLE # it makes no difference if the circle has a black outline
COLOR 0 0 0
COLOR 255 0 0
> It seems like the fix you've tried, of increasing metabuffer size, is
> not going in the right direction. From what you've described, it
> sounds like the map tiles would no longer align properly unless they
> are cropped before display in the browser. So I think you want to put
> that back to 0, and then work on the symbol artifacts as a separate
> I see a couple things in http://mapserver.gis.umn.edu/docs/reference/
> mapfile/label that may help in your mapfile. The "PARTIALS" flag
> should be set to false, to say that labels are not allowed to run off
> the edge of the map (metatile). I'm not sure if your symbols are
> also treated as LABELs in your mapfile (it's been a while since I've
> had my hands in the guts of this), but if they are, then the same
> PARTIALS flag may apply to the symbols too and may cure the problem.
> On May 9, 2007, at 3:01 PM, Melanie Ritzau wrote:
> > 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
> > _______________________________________________
> > 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