Opened 15 years ago
Closed 13 years ago
#3153 closed defect (fixed)
STYLE->MAXWIDTH, MINWIDTH, MINSIZE, MAXSIZE are not scaled with resolution
Reported by: | aboudreault | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | MapServer C Library | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | resolution style maxwidth |
Cc: | dmorissette, assefa, cnieman, tbonfort |
Description
cnieman reported:
When we scaled these styles for print [(width/resolution)*dpi] which was, for example, in the first class of the attached sample, [(16/96)*300 = 50] and [(10/96)*300 = 31.25] we found that the ratio between the two line >widths was not consistent with what was displayed with no scaling; the line that should have >had a width of 50 was only getting drawn with a width of 32 because of the default MAXWIDTH >value. When MAXWIDTH was set using the same scaling calculation, the lines were drawn with the >correct ratio between the widths.
An example with three line styles can be downloaded at this url: http://trac.osgeo.org/mapserver/attachment/ticket/2948/MAXWIDTH_example.zip
Change History (4)
comment:1 by , 15 years ago
Cc: | added |
---|---|
Milestone: | 5.6 release → 6.0 release |
comment:2 by , 15 years ago
comment:3 by , 15 years ago
Due to another issue, this bug have been fixed at the same time. The note in the RFC about the limitation should be reversed.
See related bug: http://trac.osgeo.org/mapserver/ticket/3157
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The limitation in the RFC has been removed. Closing this ticket.
Due to the current API, that bug cannot be fixed for 5.6. We can't easily access the defresolution/resolution scalefactor in most part of the code. Also, the API will totally change in 6.0 with a lot of improvements. Changing milestone to future.
STYLE (MAXWIDTH, MINWIDTH, MAXSIZE, MINSIZE) and LABEL(MAXSIZE, MINSIZE) will have to be scaled properly with a scale factor depending on defresolution and resolution setting.