<HTML>
<HEAD>
<TITLE>Re: [UMN_MAPSERVER-USERS] reprojection within map file does not seem to slow down performance within mapserver</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>John -<BR>
<BR>
I agree with Frank that that documentation is somewhat misleading, but remember that it is only referring to the rendering performance of that layer. &nbsp;Your total MapServer turnaround time for an image request includes many different pieces, and layer rendering/reprojection is only one of them. &nbsp;In fact, at one point I discovered that I had tuned my data organization so well that the act of loading and parsing the map file itself was taking up 75% of my total image rendering time!<BR>
<BR>
Raster reprojection will generally be slower than vector reprojection, as there are usually many more points involved. &nbsp;But &#8220;slower&#8221; is a relative term.<BR>
<BR>
I do raster reprojection all the time. &nbsp;All TopoZone&#8217;s imagery is stored in UTM projections, and when a user views a topo map or aerial photo that&#8217;s at a UTM zone boundary, TopoZone uses MapServer to reproject one half of the image to the adjacent UTM zone on the fly. &nbsp;This allows us to both display imagery in UTM projection all the time, and to have no apparent gaps in coverage at UTM zone boundaries; the coverage is seamless across the US.<BR>
<BR>
Here&#8217;s an example:<BR>
<BR>
<a href="http://www.topozone.com/map.asp?lat=40&lon=-78&datum=nad27&u=4&layer=DRG&size=l&s=50">http://www.topozone.com/map.asp?lat=40&amp;lon=-78&amp;datum=nad27&amp;u=4&amp;layer=DRG&amp;size=l&amp;s=50</a><BR>
<BR>
That map is centered on a UTM zone boundary. &nbsp;If you scroll north or south you&#8217;ll be seeing on the fly reprojection of the western half of the image on every refresh. &nbsp;If you scroll east or west (so the zone boundary is no longer visible) you&#8217;ll be viewing maps without any reprojection involved. &nbsp;There are a lot of other things going on, and you should not see any perceptible difference in performance between one scrolling direction and the other.<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Ed<BR>
<BR>
Ed McNierney<BR>
TopoZone.com<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>John Mitchell &lt;mitchelljj98@GMAIL.COM&gt;<BR>
<B>Reply-To: </B>John Mitchell &lt;mitchelljj98@GMAIL.COM&gt;<BR>
<B>Date: </B>Tue, 20 Feb 2007 12:04:37 -0500<BR>
<B>To: </B>&lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;<BR>
<B>Subject: </B>[UMN_MAPSERVER-USERS] reprojection within map file does not seem to slow down performance within mapserver<BR>
<BR>
Hi,<BR>
<BR>
I have noticed that reprojection within a map file does not seem to slow down performance within mapserver. &nbsp;The mapserver documentation states that if you have a different projection within the root of the map file and a layer then it will take 2-4 times longer to reproject, but I have not noticed any decrease in performance. <BR>
Has anyone else had a similar result?<BR>
<BR>
<BR>
&nbsp;Thanks,<BR>
<BR>
-- <BR>
John J. Mitchell<BR>
</SPAN></FONT>
</BODY>
</HTML>