[mapserver-users] LABELS - changing from single map to tiles and overlays - HOW?

thomas bonfort thomas.bonfort at gmail.com
Wed Mar 20 09:59:22 PDT 2013


On 20 March 2013 17:49, Worth Lutz <wal3 at mindspring.com> wrote:
> I’ve now got labels on my maps when zoomed out but my polygons have no
> labels if I zoom in away from the label location.
>
> I’m using:
>
>     PROCESSING “LABEL_NO_CLIP=True”
>
> Is this a fixable problem?
That's the aim of LABEL_NO_CLIP, i.e. only label a polygon at a single
geographical location to prevent the label from a single polygon
appearing on every tile if that polygon spans multiple tiles.

YMMV, but you might want to remove LABEL_NO_CLIP and use metatiles on
your tile cache (e,g: with a 2x2 metatile, your label would only be
rendered in one of every 4 tiles). If you aren't using a tile cache,
then there's no easy solution I know of.
>
>
>
> Are there any examples of getting labels with mapserver and openlayers using
> tiles and multiple overlay layers?
If you're using multiple label overlays, there's no way to control
collision between the labels from different layers.
>
>
>
> I’m still experimenting but still confused.  Any help would be appreciated.
>
>
>
> Thanks,
>
> Worth
>
>
>
> ________________________________
>
> From: Worth Lutz [mailto:wal3 at mindspring.com]
> Sent: Tuesday, March 19, 2013 3:39 PM
> To: 'Donald Kerr'; 'mapserver-users at lists.osgeo.org'
> Subject: RE: [mapserver-users] LABELS - changing from single map to tiles
> and overlays - HOW?
>
>
>
> Donald,
>
>
>
> How does the change to “TYPE POINT” work for polygon shapes or do you just
> change that to “TYPE POLYGON” and only have a label in the “CLASS” block?
>
>
>
> I’m still confused on how to manage labels on multiple overlay layers. That
> may be a long term project for my application. I was hoping for a simple
> solution.
>
>
>
> I did figure out that putting
>
>     PROCESSING “LABEL_NO_CLIP=True”
>
> in my layer fixed some of my problems of multiple labels with many clipped.
>
>
>
> Thanks for your help,
>
> Worth
>
>
>
>
>
> ________________________________
>
> From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk]
>
> Sent: Tuesday, March 19, 2013 3:29 PM
> To: 'Worth Lutz'; mapserver-users at lists.osgeo.org
> Subject: RE: [mapserver-users] LABELS - changing from single map to tiles
> and overlays - HOW?
>
>
>
> Worth,
>
>
>
> I have replaced “TYPE ANNOTATION” with “TYPE POINT” and all is working well.
>
>
>
> As for tiling and labels, I have not found a satisfactory solution at all
> and have accepted that I am getting partial labels or no labels it the label
> starts in another tile - See here:
> https://github.com/mapserver/mapserver/issues/4284
>
>
>
> What I have done is offered an option of “Single Tile” for users so that
> they can switch between tiled and not. The tiled option gives a better
> OpenLayers slippy map experience but the single tile option allows for
> accurate and complete labelling.
>
>
>
> Regards,
>
>
>
> Donald
>
>
>
>
>
>
>
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz
> Sent: 19 March 2013 14:52
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] LABELS - changing from single map to tiles and
> overlays - HOW?
>
>
>
> Hi all,
>
>
>
> I’m changing my usage of mapserver from a single map image to using
> OpenLayers and having MapServer work as a WMS server.
>
>
>
> My problem is labels. There seem to be too many variables (in MapServer and
> OpenLayers) and I cannot figure out which to set to keep from having partial
> labels, too many labels or overlapping labels.
>
>
>
> What is the best way to approach labels in a tiled / overlay environment.
>
>
>
> I noticed that in MapServer 6.0 the “annotation” layer type is deprecated.
> What is the method for replacing this?
>
>
>
> In summary, I’m LOST.  Anyone with a map, please point me in the right
> direction. J
>
>
>
> Thanks,
>
> Worth
>
> ________________________________
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13
>
>
> _______________________________________________
> 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