Ticket #3241 (new enhancement)
templates: getting a shape postion that can be used for labelling
| Reported by: | assefa | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | template postion |
| Cc: | j.l.h.hartmann@…, warmerdam |
Description
The initial idea is to be able to use a template with a combination of a WMS GetFeatureInfo? request, retrieve attribute information as well as position info and display a point and possibly a label on the features on the client side. MapServer Templating supports at this point shpmid (and shpmidx, shpmidy) but the returning position might not be suitable to position a point/label on the client side. What we would need would be the possibility to return a position suitable for queried shapes that would be equivalent to the label positions computed in MapServer. Would it make send to add a new tag (shplabelpos) or extend shmpmid with an option? Looking in the docs and code source, I did not see a suitable tag to achieve this.

