[mapserver-users] Re: Reaspect?

SixDegrees paulcarlisle at comcast.net
Tue Nov 1 14:17:34 PDT 2011


That makes me sad, because I really need an ability similar to what I've
described. I can probably pull it off on my own, but that will require a
fair amount of new code to accommodate pixels  that are widely different in
width and height in many of our images.

A capability similar to HTML's IMG tag, where the WIDTH and HEIGHT are
strictly obeyed when both are present, but the original image's aspect ratio
is maintained when one or the other is left off, would be ideal.

I really hope this is not correct, and that the reaspect parameter will do
something useful. I can experiment tomorrow when I'm back at the server.


Rahkonen Jukka wrote:
> 
> Hi,
> 
> Reaspect does not seem to do anything with Mapserver acting as WMS server. 
> The example here http://mapserver.org/trunk/faq.html is for Mapserver
> acting as a WMS client and reading data from some ArcIMS servers.  
> 
> -Jukka Rahkonen-
> 
> SixDegrees wrote:
> 
>> Can someone provide an example of what the 'reaspect' parameter of a wms
> request will do when Mapserver receives it in a GetMap request? As I
> understand it (poorly) the WIDTH and HEIGHT will remain the same, but if
> 'reaspect=true' the BBOX may be adjusted so the aspect ratio of the
> projected image is preserved and WIDTH and HEIGHT just specify a "window"
> onto this "correctly" proportioned rendering, while if 'reaspect=false'
> the
> BBOX is retained along with WIDTH and HEIGHT and the image is
> stretched/squished to fit. Is this correct, or am I completely
> misunderstanding this?
> 
>> Also, if the above is true and 'reaspect=true' is set, how is the
>> "window"
> defined by WIDTH and HEIGHT placed onto the image? Is it centered with
> respect to the BBOX? Placed against one of the corners? Or something else
> altogether?
> 
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Reaspect-tp6953208p6953208.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reaspect-tp6953208p6953294.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list