[mapserver-dev] WMS exception for requests width height=1
Martin Kofahl
martin.kofahl at gmail.com
Wed Apr 10 13:00:12 PDT 2013
Not really. I expect this to be a kind of test request, but I'm not sure.
At least with qgis this looks to depend on client settings, too.
2013/4/10 thomas bonfort <thomas.bonfort at gmail.com>
> Martin,
> do you know why these clients are sending 1px getmap requests ?
>
> --
> thomas
>
>
> On 10 April 2013 20:40, Martin Kofahl <martin.kofahl at gmail.com> wrote:
>
>> Hello,
>> currently, I see wms clients (qgis, arcgis 10) doing getmap requests with
>> height=1. MapServer (6.2) throws an exception:
>>
>> msDrawMap(): Image handling error. Unable to initialize image.
>> msCalculateScale(): General error message. Invalid image extent,
>> minx=nan, miny=nan, maxx=nan, maxy=nan.
>>
>> The reason is in msAdjustExtent(), where the cell size is calculated
>> using MS_CELLSIZE(miny,maxy,height), defined as ((max - min)/(d-1)).
>> Formally, I don't see any reasons against 1 pixel requests. What are
>> the reasons for "d-1"?
>>
>> Martin
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130410/0a2a4bc8/attachment.html>
More information about the mapserver-dev
mailing list