Opened 17 years ago
Closed 17 years ago
#2232 closed defect (fixed)
"minfeaturesize auto" causes labels to never be drawn
Reported by: | dougrenwick | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.0 release |
Component: | MapServer CGI | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: |
Description
Issue: "minfeaturesize auto" is documented as causing labels to appear only when their containing polygon is larger than the label. In my tests, it causes labels to never be displayed.
Demonstrations:
Default label handling: http://maps.hostgis.com/gregor/mww_example/ http://maps.hostgis.com/gregor/mww_example/mapfile.txt
LABEL
COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc
END
Minfeaturesize 36: http://maps.hostgis.com/gregor/mww_example3/ http://maps.hostgis.com/gregor/mww_example3/mapfile.txt
LABEL
COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc MINFEATURESIZE 36
END
In this case, there are still several polygons (note the northeast quad of the map) which lack labels though they're above the minimum size and labels would not collide. That's probably beyond the scope of this submission, but is still interesting and my employer considers it "bug like"
Minfeaturesize auto: http://maps.hostgis.com/gregor/mww_example2/ http://maps.hostgis.com/gregor/mww_example2/mapfile.txt
LABEL
COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc MINFEATURESIZE auto
END
Note that labels are never displayed. This is also the case even if "FORCE true" is set.
Change History (4)
comment:1 by , 17 years ago
Milestone: | 4.10.3 release → 5.0 release |
---|
follow-up: 3 comment:2 by , 17 years ago
comment:3 by , 17 years ago
Severity: | major → normal |
---|
Replying to sdlime:
Are we sure the labels simply aren't too big?
Steve
Nevermind, I can recreate (I'm a moron)...
Steve
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Turns out that this feature never worked. Fixed in r6777.
Steve
Are we sure the labels simply aren't too big?
Steve