That exactly what I guessed. But it isn&#39;t true. If it was, a rotated map at 45°, is represented by an extent having de double of the initial size extent. A 600x600 (360000 pixels) rotated image correspond to a 848x848 (~720000) normal image. But the rotated image take 0.21s, and the normal image take 0.32s. The difference is huge.<br>
So I read the part of the source code which is responsible of rotation. There&#39;s nothing about this. And i don&#39;t find the solution to this (I don&#39;t undestund the rotation algorithm too).<br><br><br><div class="gmail_quote">
2011/4/21 thomas bonfort <span dir="ltr">&lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Mohamed,<br>
I&#39;m guessing that as the underlying data drivers only accept<br>
rectangular extents oriented northwards, they have to return more data<br>
if there is a rotation implied. And mapserver also has to filter the<br>
extra features out at some point, even if they do not fall on the<br>
final map image. This could explain the overhead.<br>
<font color="#888888"><br>
--<br>
thomas<br>
<br>
2011/4/21 Mohamed Saâd HESSANE &lt;<a href="mailto:saad.hessane@gmail.com">saad.hessane@gmail.com</a>&gt;:<br>
</font><div><div></div><div class="h5">&gt; I don&#39;t think so. If it was, juste when a cos or a sin vanish.<br>
&gt; My first thought was that mapserver have to calculate more pixels in a<br>
&gt; rotated map than a normale map. But when i read the source code i found that<br>
&gt; it&#39;s the projection which rotate, not the map. So why this discimination?<br>
&gt; The same projection<br>
&gt;<br>
&gt;<br>
&gt; 2011/4/21 Stephen Woodbridge &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 4/21/2011 10:32 AM, Mohamed Saād HESSANE wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hy list,<br>
&gt;&gt;&gt; I have a question. I&#39;m doing a benchmarking test of a rotated map, and i<br>
&gt;&gt;&gt; get the result in the attached file.<br>
&gt;&gt;&gt; My question is why it take more time to draw a map rotated at 45° than a<br>
&gt;&gt;&gt; map rotated at 90° or 183° ???<br>
&gt;&gt;&gt; Thank you !<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m only guessing here but could it be that the math required to compute<br>
&gt;&gt; cos and sin is more costly in cpu cycles at those angles.<br>
&gt;&gt;<br>
&gt;&gt; Regardless, this is an interesting question and I love the graphic, nice<br>
&gt;&gt; job on that.<br>
&gt;&gt;<br>
&gt;&gt; -Steve W<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mapserver-dev mailing list<br>
&gt;&gt; <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mapserver-dev mailing list<br>
&gt; <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>