[mapserver-users] tiled label issue - labels cut off in cases where the label fits on one tile but not the other?

Mark Volz MarkVolz at co.lyon.mn.us
Thu Jul 18 13:31:24 PDT 2013


Thomas and others,

I noticed that "labelcache_map_edge_buffer" is in the web metadata section.  So apparently this will only work if I use WMS?  I am not sure that this will work in my situation.  All of my operational layers are in one mapfile.  This way I can take advantage of label collision avoidance.  In addition, any layer may be turned on or off by the user.  For me to create a mapcache, I would either have to separate each layer which would mean I would lose collision avoidance functionality, or I would need to create caches for each combination of layers that can be turned on or off which would be a night mere to manage.

I would like to see if there is a way to take advantage of "labelcache_map_edge_buffer" directly in mapserver mode, instead of wms mode.  This way I could take advantage of our multi-core server, and allow users to pan around much faster!
 
Thanks


Mark Volz, GISP
GIS Specialist


> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Thursday, July 18, 2013 12:14 PM
> To: Mark Volz
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] tiled label issue - labels cut off in cases where
> the label fits on one tile but not the other?
> 
> sorry, wrong thread... tl;dr : set your mapfile's labelcache_map_edge_buffer
> to the same value as your mapcache tileset's metabuffer.
> 
> On 18 July 2013 19:10, thomas bonfort <thomas.bonfort at gmail.com> wrote:
> > You're nearly there !
> >
> > http://lists.osgeo.org/pipermail/mapserver-users/2012-October/073462.h
> > tml
> >
> > this is also documented in the mapcache docs and sample configuration
> file.
> >
> > --
> > thomas
> >
> > On 18 July 2013 18:59, Mark Volz <MarkVolz at co.lyon.mn.us> wrote:
> >> Hello,
> >>
> >> I am trying to set up a my mapfile so that I can tile my parcel layer.  I think I
> have everything set up correctly, however there are still some cases where
> labels are cut off.  After some investigation I came to the conclusion that I
> either have something wrong, or that I may have come across a bug or
> limitation.
> >>
> >> Here is what I did:
> >> 1) I set up PROCESSING "LABEL_NO_CLIP=True" so that the entire parcel
> >> is used to calculate the label position
> >> 2) I set up POSITION to CC so the label will be centered
> >> 3) I verified that PARTIALS is set to FALSE so that labels will "flow
> >> off" a tile
> >> 4) I set MINFEATURESIZE to AUTO
> >>
> >> Here is what I noticed:
> >> In most cases everything works great.  However,  on a larger label where
> some letters may fall on one tile, and other letters may fall on the other tile,
> only the tile that has label anchor point of the parcel is labeled.
> >>
> >> For Example:
> >> Consider a parcel that should have the label "Joe Smith"  The label is
> centered on the parcel.  The label "Joe Smi" appears on the left tile.
> However the label "th" is missing from the right tile.
> >>
> >> Question:
> >> How can I get the rest of the label to appear on the tile that does not
> contain the label anchor point so that the user will see "Joe Smith" instead of
> just "Joe Smi"
> >>
> >> Thanks
> >>
> >>
> >> Mark Volz, GISP
> >> GIS Specialist
> >>
> >>
> >> _______________________________________________
> >> mapserver-users mailing list
> >> mapserver-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list