#1781 closed defect (fixed)
GetPLOT command does not finish using raster data
Reported by: | christinebao | Owned by: | ChristineBao |
---|---|---|---|
Priority: | low | Milestone: | 2.3 |
Component: | Mapping Service | Version: | 2.1.0 |
Severity: | major | Keywords: | |
Cc: | Arthur.Liu@… | External ID: | 1406614 |
Description ¶
Report from Autodesk QA:
- Use attached raster file to create a map.
- Open map agent, do Mapping-->GetPlot. Parameter as following:
operation: GETPLOT Version: 1.0.0 DWF Version: 6.01 EPLOT version: 1.2 Locale: en Client Agent: MapGuide Developer Map Devinition: Library://***/***.MapDefinition -- the map definition just created Width: 10 Height: 10 Margins: 0 Units: in and following Commands: View center X: 758500 View center Y: 190750 view scale: 1000 data extend: 758000,190250,759000,191250 Display Dpi: 75 show layers: *** -- the layer of the raster
Click submit, and it never ends.
Change History (6)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Tech assessment
Cause of defect:
In r5135 a fixing was submitted to add Get/SetMaxRasterImageWidth(), Get/SetMaxRasterImageHeight() of SE_Render, and use it in RasterAdapter.cpp:
while (imgW >= renderer->GetMaxRasterImageWidth() || imgH >= renderer->GetMaxRasterImageHeight()) { imgW >>= 1; imgH >>= 1; }
These two properties are set for AGGRenderer or GDRenderer in Rendering Service, but not set for EMapRenderer in Mapping Service. Then when meet the above loop, the renderer->GetMaxRasterImageWidth() will return a random number, for example -858993460, and cause it dead loop.
How to fix:
Set the value for Mapping service.
by , 14 years ago
Attachment: | Fix1781.patch added |
---|
comment:3 by , 14 years ago
Attach http://trac.osgeo.org/mapguide/attachment/ticket/1781/Fix1781.patch for fixing this ticket.
The raster file is too big to be attached. Anyway, it has nothing to do with data. You can reproduce the defect using any raster data.