-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force polygon labels within polygon #3948
Comments
|
Email from Jukka,
If you look at RFC 81, it is likely that using this placement algorithm with leader lines would also work well with these kinds of parcels. It would be interesting to see how they determine the font size. It looks like it might be based on a function of the horizontal width of the polygon at the label point. It is not clear to me how they compute the label point based on these images. I think they use the leader lines if the horizontal width of the polygon at the label point is less than some %age of the label length. |
|
Hello, I think many users would be able to take advantage of being able to force labels inside polygons. At the same time I realize that the current "bounding box" algorithm is faster. My question is could both be possible? Scenario One: It would be fastest to use a bounding box to creating labels for a polygon that has a rectangular shape such as a section or township. Scenario Two: Force labels to fit inside a polygon in layers where avoiding ambiguity is more important than speed such as a soils layer. A ForceLabelInside (or a better keyword) will tell MapServer to use a slower algorithm to help place the label inside the polygon. This slower, but better placed algorithm might also be used for layers that are cached. Thanks |
|
Summary of the ideas bounced around on the list:
|
This is an automated commentThis issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen with missing/relevant information if still valid. Typically, issues fall in this state for one of the following reasons:
|
Reporter: daengineer
Date: 2011/07/06 - 16:38
Trac URL: http://trac.osgeo.org/mapserver/ticket/3948
It would be very nice if there was an option to force polygon labels to fall completely within the polygon. The MINFEATURESIZE directive does a good job of weeding polygons that are too small but many labels are still placed that do not fall within the polygon. ArcMap has an option to tell labels to fall within the polygons. I have attached a screenshot with ArcMap on the left and MapServer on the right to illustrate the problem.
The text was updated successfully, but these errors were encountered: