[mapserver-dev] WMS exception for requests width height=1

Worth Lutz wal3 at mindspring.com
Wed Apr 10 12:00:38 PDT 2013


If I understand correctly, it is because MapServer is based upon a cell size
of center of pixel to center of pixel.

 

With 1 pixel you have nothing. With 2 pixels you have 1 cell.

 

Worth Lutz

  _____  

From: mapserver-dev-bounces at lists.osgeo.org
[mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Martin Kofahl
Sent: Wednesday, April 10, 2013 2:40 PM
To: MapServer Dev Mailing List
Subject: [mapserver-dev] WMS exception for requests width height=1

 

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

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3272 / Virus Database: 3162/6236 - Release Date: 04/10/13

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130410/5af6c32e/attachment.html>


More information about the mapserver-dev mailing list