How is the wkb result looking like when you execute the same query in a Query Analyzer session?<br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2010/2/28 Afroz Kannancheri <span dir="ltr">&lt;<a href="mailto:afrozk@gmail.com">afrozk@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
 Tried the Tolerance parameter,  now the previous error message is not<br>
coming up anymore.<br>
 Checked the sqlserver profiler and now it recieves a valid query, but I<br>
still get the following error on my page for the<br>
GetFeatureInfo results:<br>
<br>
Layer &#39;region1&#39;<br>
Content-type: application/vnd.ogc.se_xml<br>
&lt;?xml version=&#39;1.0&#39; encoding=&quot;ISO-8859-1&quot; standalone=&quot;no&quot; ?&gt;<br>
&lt;!DOCTYPE ServiceExceptionReport SYSTEM<br>
&quot;<a href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd" target="_blank">http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</a>&quot;&gt;<br>
&lt;ServiceExceptionReport version=&quot;1.1.1&quot;&gt;<br>
&lt;ServiceException&gt;<br>
&lt;/ServiceException&gt;<br>
&lt;/ServiceExceptionReport&gt;<br>
<br>
<br>
I enabled DEBUG on the layer and it logs &quot;msMSSQL2008LayerGetShapeRandom bad<br>
shape: 1&quot; in the log file.<br>
<br>
Please find part of my layer information for your reference<br>
<br>
 LAYER<br>
  NAME &quot;region1&quot;<br>
  CONNECTIONTYPE PLUGIN<br>
  PLUGIN &quot;C:\Programs\ms4w\Apache\specialplugins\msplugin_mssql2008.dll&quot;<br>
<br>
  CONNECTION &quot;server=192.168.254.34;uid=uid;pwd=pwd;database=map;Integrated<br>
Security=false&quot;<br>
<br>
  DATA &quot;geom from region1&quot;<br>
  TYPE POLYGON<br>
<br>
  DEBUG 0<br>
  STATUS ON<br>
  TOLERANCE 5<br>
  METADATA<br>
        &#39;wms_feature_info_mime_type&#39; &quot;text/html&quot;<br>
        &quot;ows_include_items&quot; &quot;all&quot;<br>
  END<br>
  PROJECTION<br>
      &quot;init=epsg:4326&quot;<br>
  END<br>
<br>
<br>
<br>
Thanks and regards<br>
Afroz<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4648413.html" target="_blank">http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4648413.html</a><br>

</font><div><div></div><div class="h5">Sent from the Mapserver - User mailing list archive at Nabble.com.<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" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>