<div>Great thanks Frank.</div>
<div>You pointed me in the right direction.</div>
<div>Found that I simply had to set the ODBC to System DSN.</div>
<div>&nbsp;</div>
<div>BR</div>
<div>Thomas Rokkjaer<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Thomas Rokkjaer wrote:<br>&gt; I have followed the guidelines for setting up a virtual spatial data connection
<br>&gt; at<br>&gt; <a href="http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData">http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData</a>,<br>&gt; installed FWTools 1.3.4, tested the connection via ogrinfo successfully, tested
<br>&gt; the mapfile (specific layer attached) with the shp2img tool successfully, but I<br>&gt; am having problems with displaying this newly generated layer in my map<br>&gt; window.<br>&gt; At <a href="http://mapserver.gis.umn.edu/docs/howto/ogrmysql">
http://mapserver.gis.umn.edu/docs/howto/ogrmysql</a> I found a how-to for<br>&gt; OGR connection to MySQL, where it is stated the following<br>&gt; prerequisite &quot;MapServer compiled with OGR version supporting this<br>
&gt; functinality&quot;. How is it possible to compile my current MapServer to support<br>&gt; OGR for SQL server or should it already work with the current settings?<br><br>Thomas,<br><br>You are configured to use the OGR ODBC driver, which should be available
<br>in any GDAL/OGR windows build.&nbsp;&nbsp;So there is nothing special required.&nbsp;&nbsp;The<br>MySQL case is accessing MySQL directly rather than through ODBC.<br><br>If shp2img is working, I&#39;d suggest you carefully review permissions for
<br>use of the ODBC DSN for whatever user your web server is running as.<br><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLEITEM &quot;AUTO&quot;<br><br>BTW, I don&#39;t believe that STYLEITEM &quot;AUTO&quot; is going to do anything<br>for ODBC/VRT datasources.&nbsp;&nbsp;It mostly is useful for mapinfo, and dgn
<br>file formats.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">
warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a href="http://osgeo.org">
http://osgeo.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Med venlig hilsen<br><br>Thomas Rokkjær<br>Mobil 3095 0774<br><br><a href="http://picasaweb.google.com/thomas.rokkjaer">http://picasaweb.google.com/thomas.rokkjaer
</a>