Opened 15 years ago

Closed 14 years ago

#3119 closed defect (fixed)

msComputeBounds produces incorrect results when first shape has zero lines

Reported by: mchapman87501 Owned by: sdlime
Priority: normal Milestone: 5.6.6 release
Component: MapServer C Library Version: 5.4
Severity: normal Keywords:
Cc:

Description

When rendering vector layers, msClipPolygonRect may yield shapes containing lines which have zero points. When a zero-point line occurs as the first line in a shape, msComputeBounds does not correctly compute the bounds of the shape.

This problem may manifest as a partially-filled map region when using e.g. the AGG/PNG driver.

I'll try to attach a test script which demonstrates the problem using shp2img, and also a patch for mapprimitive.c.

Attachments (2)

test.tgz (100.6 KB ) - added by mchapman87501 15 years ago.
Test script, mapfile and data to demonstrate the problem using shp2img
mapprimitive.c.patch (952 bytes ) - added by mchapman87501 15 years ago.
Patch for mapprimitive.c, showing one way to fix the problem.

Download all attachments as: .zip

Change History (3)

by mchapman87501, 15 years ago

Attachment: test.tgz added

Test script, mapfile and data to demonstrate the problem using shp2img

by mchapman87501, 15 years ago

Attachment: mapprimitive.c.patch added

Patch for mapprimitive.c, showing one way to fix the problem.

comment:1 by tbonfort, 14 years ago

Milestone: 5.6.6 release
Resolution: fixed
Status: newclosed

Thanks mchapmann for reporting, sorry this bug slipped passed me, I fell onto it while looking for duplicates in resolving #3383

fixed in r10378, r10379, r10380 for 5.4, 5.6 and trunk

resolves #3383

Note: See TracTickets for help on using tickets.