Thank you very much for the quick reply, I will check those links right now.<br>
<br>
Thanks,<br>
<br>
Matt<br><br><div><span class="gmail_quote">On 9/24/05, <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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/24/05, Matthew Edmondson &lt;<a href="mailto:matt0177@gmail.com">matt0177@gmail.com</a>&gt; wrote:<br>&gt; I'm running Mapserver 4.6 with Chameleon and to this point only utilizing<br>&gt; local shapefiles. I'm now going to be required to pull data from a msSQL
<br>&gt; table with lat and long points stored. I have a couple of quick questions.<br>&gt;<br>&gt;&nbsp;&nbsp;1: How do I write the connection string to a msSQL db.<br><br>Matt,<br><br>You would use CONNECTIONTYPE OGR and a CONNECTION string like
<br>&quot;ODBC:MyDSN&quot; where MyDSN is the DSN you setup for the Microsoft<br>SQL Server dataset in question.&nbsp;&nbsp; You might want to skim the OGR ODBC<br>driver page at:<br><br>&nbsp;&nbsp;<a href="http://www.gdal.org/ogr/drv_odbc.html">
http://www.gdal.org/ogr/drv_odbc.html</a><br><br>&gt;&nbsp;&nbsp;2: What format does the geo data need to be in the table. Currently, the<br>&gt; lat/long is in decimal degrees in 2 different columns, is that appropriate,<br>&gt; if not, what format does it need to be in.
<br><br>That should be fine, but there is still the issue of identifying the columns<br>to be used as spatial columns.&nbsp;&nbsp;For this you will need to setup an<br>OGR Virtual File (often extension .ovf).&nbsp;&nbsp;These are documented at:
<br><br>&nbsp;&nbsp;<a href="http://www.gdal.org/ogr/drv_vrt.html">http://www.gdal.org/ogr/drv_vrt.html</a><br><br>There is also a detailed wiki topic on the use of virtual files to access data<br>from ODBC connections such as yours.&nbsp;&nbsp;I don't recall the url but you could
<br>dig around for it if the above isn't enough info.<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;| Geospatial Programmer for Rent
<br></blockquote></div><br>