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 aboudreault, 15 years ago

Cc: tbonfort added
Milestone: 5.6 release6.0 release

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.

comment:2 by dmorissette, 15 years ago

FYI I have updated the RFC to include a note about this limitation for MAXWIDTH, MINWIDTH, MAXSIZE, MINSIZE in v5.6, and that the issue should be resolved in 6.0. (r9390, r9392)

comment:3 by aboudreault, 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 aboudreault, 13 years ago

Resolution: fixed
Status: newclosed

The limitation in the RFC has been removed. Closing this ticket.

Note: See TracTickets for help on using tickets.