[mapserver-users] Making labels appear less often on adjacent tiles
Thomas Bonfort
thomas.bonfort at camptocamp.com
Wed Oct 14 07:43:39 PDT 2009
simply put, when using that parameter the label point is chosen using
geographical coordinates instead of pixel ones, which means that the
label is anchored to the ground thus making it appear only once even
if the polygon spans multiple rendered tiles. hope this is
sufficiently clear ....
regards,
thomas
www.camptocamp.com
+33 5 16 57 01 02
On Wed, Oct 14, 2009 at 14:45, Adrian Popa <adrian_gh.popa at romtelecom.ro> wrote:
> Thank you, Thomas,
>
> That worked beautifully. I am curious, though - how does it work? I mean,
> the requests are independent and as far as I can see there is no "state" on
> the server telling him some request are part of a larger request. So, how
> can it know on which tile to show the label and on which tile not to show
> the label?
>
> Thanks
>
> Thomas Bonfort wrote:
>
> yes you can do that, by adding a PROCESSING "LABEL_NO_CLIP=ON" to the
> layers where you don't want repeated labels.
>
> regards,
>
> thomas
>
> www.camptocamp.com
> +33 5 16 57 01 02
>
>
>
> On Wed, Oct 14, 2009 at 13:29, Adrian Popa <adrian_gh.popa at romtelecom.ro>
> wrote:
>
>
> Hello everyone,
>
> I'm sure this subject has been discussed before, but I wasn't able to find
> relevant information so far, so please point me in the right direction
> please.
>
> I have switched to WMS and I am now getting several tiles from my mapserver
> for one request (this is desired) (actually there are multiple WMS requests
> for a specific area). I have no label clipping issues, so that's fine also.
> The thing is, for example, if I zoom over a town and the town is split
> between several tiles, I will get a label on each tile for the town name.
> Previously, when I was requesting a large tile from my mapserver
> (single-tile), this wouldn't happen.
>
> I don't want to set the label to "not be visible" below a certain
> resolution, because that way I wouldn't get any labels below a point.
>
> So, my question is: Is it possible to show the label only once per feature,
> not once per request? My guess is not (because I wouldn't know how to
> implement it), but I'm curious if there's a solution...
>
> Regards,
> Adrian
>
> --
> --- Adrian Popa
> NOC Division
> Network Engineer
> Divizia Centrul National de Operare Retea
> Departament Transport IP & Metro
> Compartiment IP Core & Backbone
> Phone: +40 21 400 3099
>
> _______________________________________________
> 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