#25 closed defect (fixed)
ECW and Mr Sid not printing from DWF Viewer
Reported by: | waltweltonlair | Owned by: | waltweltonlair |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Server | Version: | 1.2.0 |
Severity: | major | Keywords: | |
Cc: | External ID: | 923211 |
Description
- Create a map with a vector layer and raster layer (either ECW or SID).
- Open the map in AJAX viewer and print it. The result is showing vectors and raster as expected.
- Open the map in DWF Viewer and print it. The result is showing vectors only.
Note that Tiff prints fine from DWF Viewer.
Change History (3)
comment:1 by , 18 years ago
External ID: | → 923211 |
---|---|
Status: | new → assigned |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 18 years ago
Discussion of the problem:
When creating the printed view the DPI is set to that of the printer, which is typically much higher than the screen. The requested resolution is therefore increased. During normal screen viewing my DPI was 96 and the requested raster size was about 384x527 pixels. When printing the DPI was 600 and the requested raster size was about 6814x4759 pixels. The size of the array needed to allocate this raster (32bpp x 6814 x 4759 = 129711304 bytes) exceeds the maximum allowed value (16777216), and therefore the raster is not drawn.
The fix was simply to ensure that the requested size of the raster doesn't exceed the maximum allowed value.
Fixed by submission http://trac.osgeo.org/mapguide/changeset/1514.