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)
Change History (3)
by , 15 years ago
by , 15 years ago
Attachment: | mapprimitive.c.patch added |
---|
Patch for mapprimitive.c, showing one way to fix the problem.
Note:
See TracTickets
for help on using tickets.
Test script, mapfile and data to demonstrate the problem using shp2img