Opened 13 years ago
Closed 11 years ago
#1987 closed defect (fixed)
Hatches from DWF files renders poorly using AGG Render
Reported by: | fare | Owned by: | waltweltonlair |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Drawing Service | Version: | 2.2.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
Hatches from DWF files renders poorly over AGG. It look to me that this is similar to ticket #1257. I'm providing proof and sample data(DWF is published from AutoCAD Map 2012). Images are served over WMS (EPSG:31276).
Attachments (7)
Change History (15)
by , 13 years ago
Attachment: | AggBug.dwf added |
---|
comment:1 by , 13 years ago
can you try this out with the 2.4 test release?
In my own testing I found the DWF handling been improved
comment:3 by , 13 years ago
Summary: | DWF render poor in AGG → Hatches from DWF files renders poorly using AGG Render |
---|
comment:4 by , 11 years ago
According to AGG sample page http://www.antigrain.com/demo/ and "gouraud" sample there are two methods that can be used to hide this kind of problem - dilating the polygons and/or changing the gamma-correction value.
I tried implementing the dilating polygons but didn't manage to remove artifacts. So I switched to gamma correction.
I'm proposing patch that is attached. Drawing polytriangles is separated to another method of AGGRenderer class. Basically method is copy of method that is used to draw polygons but before rendering occurs gamma value is set to low value (test showed that value between 0.3-0.5 gives satisfying results) and then restored to value 1.0 once rendering is done.
Lowering gamma value gives sharper outer edges(less anti-aliasing) but for me this is acceptable trade of.
comment:5 by , 11 years ago
Can you send a post about this patch to mapguide-internals and request a review?
comment:7 by , 11 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:8 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in trunk with r7896.
Sample DWF file