Opened 13 years ago

Closed 13 years ago

#3833 closed defect (fixed)

STYLE PATTERN does not work as expected for GIF output

Reported by: havatv Owned by: tbonfort
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: tbonfort

Description

STYLE PATTERN does not work properly for GIF output in svn trunk (with bug3828.patch). The patten does not seem to scale. Works well with PNG (AGG) output.

    CLASS
      STYLE
	COLOR 209 66  0
        WIDTH 14
        PATTERN
         125 25
        END # pattern
      END # style

Change History (6)

comment:1 by sdlime, 13 years ago

Cc: tbonfort added

comment:2 by tbonfort, 13 years ago

Owner: changed from sdlime to tbonfort
Status: newassigned

havard, is this still the case with the fix for #3835 ?

comment:3 by havatv, 13 years ago

It has improved a lot, but it is still a bit different from the AGG output. This is probably partly due the rounded ends of the GD tags (I use butt for the dashed lines in AGG).

Is LINECAP, LINEJOIN and the rest of the "cartoline" family supported for GD/GIF?

One strange thing that has happened is that the colours have changed for lines with PATTERN!

comment:4 by tbonfort, 13 years ago

pattern color fixed in r11557

comment:5 by tbonfort, 13 years ago

Havard,

If the problem you point out is due to the caps, I'll let you close this one as wontfix, as GD doesn't support caps or joins (that's why the cartoline type was added beforehand).

If not, I'll need a testcase, although I can't really see what scaling would have to do in this case as it is done in a higher level function (the agg renderer receives the exact same parameters)

comment:6 by tbonfort, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.