<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Re: GDAL 1.6.0, released
2008/11/26</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have be unable to use OGR2OGR to accomplish an
SQL LEFT JOIN of a shapefile with the attributes of a master dbf
table. If my syntax is not correct, I hope someone can show me where it is
wrong.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The files I am using are all in the same
directory. I have tried countless variation of syntax, but the two which
seem correct, but don't work, are:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(1) ogr2ogr -sql "SELECT test.*,
master.DRCLASSDCD FROM test LEFT JOIN master.dbf.MUKEY ON test.MUKEY =
master.MUKEY" outshpdir test.shp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(2) ogr2ogr -sql "SELECT test.*,
master.DRCLASSDCD FROM test LEFT JOIN 'x:/JUNK/JOIN/master.dbf'.MUKEY ON
test.MUKEY = master.MUKEY" outfiles test.shp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Small test files of actual data being tried
are at: <A
href="http://botanicalexplorer.com/gdal/test_files.zip">http://botanicalexplorer.com/gdal/test_files.zip</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any assistance would be greatly
appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>