<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><span class="Apple-style-span" style="font-size: 15px; ">Clément,</span></div>
<div><span class="Apple-style-span" style="font-size: 15px; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-size: 15px; ">There is an optimized route for reprojection from 4326 -> 3857 in MapServer (see </span><a href="http://lists.osgeo.org/pipermail/mapserver-dev/2012-February/011956.html">http://lists.osgeo.org/pipermail/mapserver-dev/2012-February/011956.html</a>)
so it can be very fast. I can't see how if could be faster than no projection. Perhaps the 10% is just within the margin of error? Or did you do the test 1000's of times and average the results? That might be what it takes to really see a difference.</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div>
<div>-- </div>
<div>Michael Smith</div>
</div>
<div>US Army Corps</div>
</div>
<div>Remote Sensing GIS/Center </div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Clément MONIER <<a href="mailto:Clement.MONIER@v-trafic.com">Clement.MONIER@v-trafic.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, December 4, 2012 7:23 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[mapserver-users] Projection takes less time than no projection ?<br>
<span style="font-weight:bold">Resent-From: </span>Michael Smith <<a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</a>><br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m using MapServer to generate tiles to overlay on a GoogleMaps base layer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My data files are WGS84 shapefiles.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So my current mapfile was looking like :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="background:silver;mso-highlight:silver">MAP<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="background:silver;mso-highlight:silver">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><i><span lang="EN-US" style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">PROJECTION
"init=epsg:3785" END<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">LAYER<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="background:silver;mso-highlight:silver">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-autospace:none"><i><span lang="EN-US" style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">PROJECTION
"init=epsg:4326" END<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="background:silver;mso-highlight:silver">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">END<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="background:silver;mso-highlight:silver">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">END</span></i><i><span style="font-size: 10pt; font-family: 'Lucida Console'; "><o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was wondering about improving response time by disabling on-the-fly projection.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I did pre-project my shp into spherical Mercator first.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And my new mapfile now looks like :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US" style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">MAP<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">PROJECTION
"proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs" END<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">LAYER<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">END<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">…<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span style="font-size: 10pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: silver; font-family: 'Lucida Console'; background-position: initial initial; background-repeat: initial initial; ">END<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I do get the same tiles.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But when asking a single tile using both mapfile, I noticed that the response time was higher (about +10%) when the second mapfile was used !<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Do you have any idea about what’s going on ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks & Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Clément<o:p></o:p></span></p>
</div>
</div>
</div>
</span>
</body>
</html>