[mapserver-users] Labeling behavior at the edge of image

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Jan 19 09:26:20 EST 2012


You can use the "label_no_clip" (I think that's right) PROCESSING parameter to force label position to be computed on the untransformed geometry. This results in a stable position regardless of scale or map extent. 

You can also use the label parameter MINFEATURESIZE to limit the size of the features being labeled. Its value is given in pixel and for polygons its compared against the narrowest portion of the computed bounding box for the feature.

Steve

________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Jackey Cheung [cheung.jackey at gmail.com]
Sent: Thursday, January 19, 2012 3:49 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Labeling behavior at the edge of image

Hi all,

I've met an issue during my work. There is a polygon right at the edge
of an generated image. By setting position to auto, the label is
rendered, shifted a little bit off. It's as expected I would say.
However, a question arose immediately, what happen to the label of the
other part of the same polygon in the tile right next to this image?
Answer is that it's not render, no label to the other part. It seems
reasonable too. But it does seems a bit odd to viewers, since after
tiles are shown on a browser tile by tile side by side. No one will
notice that there is the edge slicing the polygon right into two
parts, and the label is shifted off from the center of the polygon.
So, if I would like to have the label sits right at the middle
(position cc) of the polygon, then what?

Not sure if it can be achieved. I've tried allowing partial label, but
doesn't seem working. Anyone have any idea?
_______________________________________________
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