Opened 15 years ago
Closed 15 years ago
#2793 closed defect (fixed)
Need to improve label positioning for polygons
Reported by: | sdlime | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.4 release |
Component: | MapServer C Library | Version: | 5.2 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
The current algorithm ensures that a label point is *in* a polygon, but that point is not always optimal. A better approach would be to compute a true centroid or center of gravity instead of using the bbox center.
This came out of some comparisons the GeoServer folks were doing...
Steve
Change History (4)
comment:1 by , 15 years ago
Status: | new → assigned |
---|
comment:2 by , 15 years ago
Description: | modified (diff) |
---|
comment:3 by , 15 years ago
Please also review #1592 as it has some other polygon labeling enhancements.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Added in r7979. See threads on mapserver-dev regarding the actual algorithm.
Steve