<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> </div>
<div>BR</div>
<div>Thomas Rokkjaer<br><br> </div>
<div><span class="gmail_quote">On 7/11/07, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> 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>> I have followed the guidelines for setting up a virtual spatial data connection
<br>> at<br>> <a href="http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData">http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData</a>,<br>> installed FWTools 1.3.4, tested the connection via ogrinfo successfully, tested
<br>> the mapfile (specific layer attached) with the shp2img tool successfully, but I<br>> am having problems with displaying this newly generated layer in my map<br>> window.<br>> 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>> OGR connection to MySQL, where it is stated the following<br>> prerequisite "MapServer compiled with OGR version supporting this<br>
> functinality". How is it possible to compile my current MapServer to support<br>> 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. So there is nothing special required. The<br>MySQL case is accessing MySQL directly rather than through ODBC.<br><br>If shp2img is working, I'd suggest you carefully review permissions for
<br>use of the ODBC DSN for whatever user your web server is running as.<br><br>> STYLEITEM "AUTO"<br><br>BTW, I don't believe that STYLEITEM "AUTO" is going to do anything<br>for ODBC/VRT datasources. 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 | 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 | 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>