Or you could turn tracing on at the database side to see what SQL requests it receives?&nbsp; I&#39;m only familiar with oracle, but you could do this in Oracle using the &#39;alter system set sql_trace=true&#39; command and checking the udump directoty for logs.<br>
<br><div><span class="gmail_quote">On 18/04/2008, <b class="gmail_sendername">Christopher Schmidt</b> &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Apr 18, 2008 at 12:31:24PM -0500, P Kishor wrote:<br> &gt; SELECT wkt_geometry FROM &lt;table&gt; WHERE &lt;extent of features is in the BBOX&gt;<br> &gt;<br> &gt; That is what I want to investigate. What exactly is OGR/MapServer<br>
 &gt; executing? What is the form of &quot;WHERE &lt;extent of features in the<br> &gt; BBOX&gt;&quot;? How can I log this level of detail?<br> <br> <br>You&#39;ll likely need to modify OGR to log this level of detail. In<br>
 general, this type of logging is done by the &#39;server&#39; in DB<br> environments: Since SQLIte doesn&#39;t *have* a server, I don&#39;t think<br> there&#39;s any way to do this external to OGR, and I don&#39;t believe that<br>
 it&#39;s an existing feature of the OGR sqlite driver.<br> <br> In any case, MapServer is the wrong list for this: gdal-dev is probably<br> the right place to go.<br> <br> Regards,<br> <br>--<br> Christopher Schmidt<br> MetaCarta<br>
 <br>_______________________________________________<br> mapserver-users mailing list<br> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
 </blockquote></div><br>