Ticket #2447 (closed enhancement: fixed)
(PATCH) Add support for pre-clip labeling
|Reported by:||project10||Owned by:||sdlime|
|Component:||MapServer C Library||Version:||svn-trunk (development)|
|Severity:||normal||Keywords:||label noclip pre-clip label_no_clip|
Based on discussions on IRC and -dev, I have implemented pre-clipping labeling support. I will attach a patch which will attempt to determine the labeling points prior to clipping for POLYGON and LINE layers, and polygon/line shapes within ANNOTATION layers.
This behavior is enabled by the use of the LABEL_NO_CLIP processing directive, which can be set to any value.
Steve suggested that a shape copy be avoided in implementing this feature - I was not able to get it working in that manner. The shape needs to be transformed prior to determining the label point. However, clipping a transformed shape often mangles it (the normal method is clip, then transform). I was not able to see a way around this other than copying the shape.