Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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:

  1. Use attached raster file to create a map.
  2. 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.

Attachments (1)

Fix1781.patch (3.1 KB ) - added by christinebao 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by christinebao, 13 years ago

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.

comment:2 by christinebao, 13 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 christinebao, 13 years ago

Attachment: Fix1781.patch added

comment:4 by christinebao, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in r6074.

comment:5 by christinebao, 13 years ago

Fixed in 2.3r in r6082.

Note: See TracTickets for help on using tickets.