<html 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 56.7pt 70.85pt 56.7pt;}
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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">This isn’t surprising. We haven’t been real good about consistently using levels across the code base – cleaning that up would be a good project (or sprint activity) and wouldn’t require deep technical knowledge.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ll create a ticket for the case you’ve pointed about below…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">--Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Rahkonen Jukka (MML)<br>
<b>Sent:</b> Friday, November 16, 2018 5:48 AM<br>
<b>To:</b> Mapserver-Users (mapserver-users@lists.osgeo.org) <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> [mapserver-users] About the granularity of DEBUG on tileindex layers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FI">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal">I have always used just ”DEBUG 5” for debugging raster layers but now I finally made a test with Mapserver 7.0.1 for seeing what is the real difference between the debugging levels. I was a bit surprised to see that there is not so much
 difference at all, and that the DEBUG 1 level gives information that is missing from the higher debugging levels but that would be useful sometimes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Debug 1 prints these lines<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].964589 msDrawRasterLayerLow(layer_name): entering.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980393 msDrawRasterLayerLow(layer_name): Filename is: path/file.TIF<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980423 msDrawRasterLayerLow(layer_name): Path is: path/file.TIF<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980591 AUTO = +proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980677 msDrawRasterLayerGDAL(): Entering transform.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980687 msDrawRasterLayerGDAL(): src=9979,8,1786,1062, dst=0,0,1697,1009<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980691 msDrawRasterLayerGDAL(): source raster PL (9978.817,7.700) for dst PL (0,0).<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:05:50 2018].980700 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All debug levels from level 2 print these lines:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].581597 msDrawRasterLayerLow(layer_name): entering.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].589989 AUTO = +proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].590061 msDrawRasterLayerGDAL(): Entering transform.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].590069 msDrawRasterLayerGDAL(): src=2318,7977,1786,1062, dst=0,0,1697,1009<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].590073 msDrawRasterLayerGDAL(): source raster PL (2317.846,7977.061) for dst PL (0,0).<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].590081 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:7.0pt;font-family:"Courier New"">[Fri Nov 16 12:09:05 2018].720794 msDrawMap(): Layer 3 (layer_name), 0.139s<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The only additional item that debug levels 2 and above give is the rendering time msDrawMap that is often useful.  But at the same time the filename and path items which are present at debug level 1 are missing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I suggest to add debug items msDrawRasterLayerLow(): Filename and msDrawRasterLayerLow(): Path should be added alto to debug levels >=2.  For being even more useful the highest debug level could give also timings about reading the tileindex
 and perhaps separate timings about things like how long does it take to read the “src” window from each “Filename” and if overviews are used or not.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Jukka Rahkonen-<o:p></o:p></p>
</div>
</body>
</html>