Hi, RenderRuntimeMap (HttpServerConnection) fails when I use high dpi. Ive testet the function with 2 maps, a vector map and an orthophoto map with the following dpi: 150dpi, 300dpi and 600dpi.
The function only fails when using an orthophoto and with 600dpi. The function fails when it calls this.DownloadData(s): public override System.IO.Stream RenderRuntimeMap(string resourceId, double x, double y, double scale, int width, int height, int dpi, string format, bool clip) { ResourceIdentifier.Validate(resourceId, ResourceTypes.RuntimeMap); string mapname = resourceId.Substring(resourceId.IndexOf("//") + 2); mapname = mapname.Substring(0, mapname.LastIndexOf(".")); #if DEBUG string s = m_reqBuilder.GetMapImageUrl(mapname, format, null, x, y, scale, dpi, width, height, clip, null, null, null, null); return new System.IO.MemoryStream(this.DownloadData(s));* // this line returns the error.* #else http://osgeo-org.1803224.n2.nabble.com/file/n7138044/error1.png The parameters that I pass to the function. resourceid: Session:8a8ad538-ffff-ffff-8000-0024e8c7b215_da_7F0000010AF20AF10AF0//e7b02774-f1f7-46db-aba8-38525df6c6fa.Map x: 522000.0 y: 6299500.0 scale: 150000.0 widht: 4334 height: 5822 dpi: 600 format: PNG clip: false variable s has the value: http://localhost/mapguide2009/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAGE&VERSION=1.0.0&SESSION=95127ace-ffff-ffff-8000-0024e8c7b215_da_7F0000010AF20AF10AF0&MAPNAME=1537970e-0c26-42ec-a601-43e5d04088e2&FORMAT=PNG&SETVIEWCENTERX=522000&SETVIEWCENTERY=6299500&SETVIEWSCALE=100000&SETDISPLAYDPI=600&SETDISPLAYWIDTH=4334&SETDISPLAYHEIGHT=5822&CLIP=0 I have also tried to use a native connection, but that also fails. Regars, Birgir -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/RenderRuntimeMap-fails-with-high-DPI-tp7138044p7138044.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users