Keeping you guys up to date, this problem has now been solved.<br><br>We created a VRT file for the shapefile.&nbsp; Convert VRT to TAB with the following command:<br><br><span class="q"> ogr2ogr -f &quot;MapInfo File&quot; address.tab
 address.vrt -s_srs &quot;+proj=longlat+ellps=WGS84 +datum=WGS84 +no_defs&quot; -s_srs &quot;+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs&quot;<br><br>Notice duplicate -s_srs's.&nbsp; This is needed.&nbsp; Not sure why, but doesn't work without it.
<br><br>Cheers,<br>Xin<br></span><br><br><div><span class="gmail_quote">On 09/01/06, <b class="gmail_sendername">Xin</b> &lt;<a href="mailto:crazygecko@gmail.com">crazygecko@gmail.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;">
I appreciate it might look a bit strange the way I've got the command written.&nbsp; The idea is to convert from TAB to SHP and have WGS84 projection.<br><br>Converting with projection tags would result in non-earth projection, as MapInfo would see it.&nbsp; The command seems to work with identical target and source projections.
<br><br>My problem is why does it work on Linux, but not on Windows.&nbsp; I'd love to get your views on it Frank.<br><br>Cheers,<br><span class="sg">Xin</span><div><span class="e" id="q_108af728742eef0a_2"><br><br><div><span class="gmail_quote">
On 09/01/06, <b class="gmail_sendername">Frank Warmerdam
</b> &lt;<a href="mailto:warmerdam@pobox.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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 1/9/06, Xin &lt;
<a href="mailto:crazygecko@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crazygecko@gmail.com</a>&gt; wrote:<br>&gt; Hi list,<br>&gt;<br>&gt; I am trying to convert a shapefile to tabfile whilst reprojecting it to
<br>&gt; LatLong WGS84.&nbsp;&nbsp;This works great on Linux, but doesn't on Windows.
<br>&gt;<br>&gt; The command used is:<br>&gt; ogr2ogr -f &quot;MapInfo File&quot; address.tab address.shp -t_srs &quot;+proj=longlat<br>&gt; +ellps=WGS84 +datum=WGS84 +no_defs&quot; -s_srs &quot;+proj=longlat +ellps=WGS84
<br>&gt; +datum=WGS84 +no_defs&quot;<br>&gt;<br>&gt; I did initially use EPSG codes, but that didn't work on Windows so I thought<br>&gt; I'd try the actual datum codes.&nbsp;&nbsp;No luck.<br>&gt;<br>&gt; There are no error produced on Windows.&nbsp;&nbsp;On opening the TAB file it is not
<br>&gt; projected.<br><br>Xin,<br><br>You have told ogr2ogr that the source and target SRS are both WGS84<br>so there is no reprojection to do.&nbsp;&nbsp;If the source is not already in WGS84<br>degrees then you should either use a different -s_srs or omit this option
<br>and let ogr2ogr pick up the coordinate system from the source file.<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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>

</span></div></blockquote></div><br>