[mapguide-internals] RE: Image size limitation in RenderingService

Bruce Dechant bruce.dechant at autodesk.com
Wed Sep 15 15:06:35 EDT 2010


I would recommend making it configurable in the serverconfig.ini just in case the administrator wants to control the maximum image size a client can request.

Arthur - could you please create a trac ticket for this issue?

Bruce

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Wednesday, September 15, 2010 8:51 AM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] RE: Image size limitation in RenderingService

I'd suggest either remove it or make it be configurable via serverconfig.ini

On Thu, Sep 16, 2010 at 12:16 AM, Arthur Liu <arthur.liu at autodesk.com> wrote:
> Thanks for your quick reply Walt.
>
> So, is it a good idea that we remove the check or should we extend the image size limitation?
>
> Regards,
> Arthur
>
> -----Original Message-----
> From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Walt Welton-Lair
> Sent: Wednesday, September 15, 2010 9:43 PM
> To: MapGuide Internals Mail List
> Subject: [mapguide-internals] RE: Image size limitation in RenderingService
>
> The change to RasterAdapter was made 5 years ago.  At the time MapGuide Open Source was under development and only supported a DWF Viewer based client, and the image size limit made sense.  Now that we have image based clients, and also hardware display resolutions have increased over the years, the image size check should probably be changed.
>
> Walt
>
> -----Original Message-----
> From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Arthur Liu
> Sent: Wednesday, September 15, 2010 8:34 AM
> To: MapGuide Internals Mail List
> Subject: [mapguide-internals] Image size limitation in RenderingService
>
> Hi all,
>
> I met a problem when trying to get a map image with size 2048x2048. The image quality drops significantly compare to 2048x2047.
> That happens only in Raster provider and WMS provider,  vector data sources doesn't have this kind of problem.
>
> I found following code in rendering service
>
> RasterAdapter::Stylize()
> {
>   ...
>    while (imgW >= 2048 || imgH >= 2048)
>    {
>        imgW >>= 1;
>        imgH >>= 1;
>    }
>    ...
> }
> The map image can be gennerated sucessfully if I comment out the code.
>
> Does there anyone know why there's a limitation of the map image? Is there any solution or workaround to get a large size map image?
>
> Regards,
> Arthur
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list