<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi everybody.</FONT></DIV>
<DIV><FONT size=2 face=Arial>I need to convert some autocad .dwg files to ESRI
Shapefiles.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Someone on the web suggested that gdal/ogr2ogr was
able to perform such conversion, even if only with .dwg files version 2000 or
before.</FONT></DIV>
<DIV><FONT size=2 face=Arial>My problem is that in my environment gdal/ogr seems
not to be able to access .dwg.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>In fact when I run </FONT></DIV>
<DIV><FONT size=2 face=Arial>> <FONT size=2 face=Arial>ogr2ogr -f "ESRI
Shapefile" destfile.shp sourcefile.dwg</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial>I get the following error:</FONT><FONT size=2
face=Arial></DIV>
<DIV><BR>FAILURE:<BR>Unable to open datasource `ANZIO_TOP2000.dwg' with the
following drivers.<BR> -> ESRI Shapefile<BR> -> MapInfo
File<BR> -> UK .NTF<BR> -> SDTS<BR> ->
TIGER<BR> -> S57<BR> -> DGN<BR> -> VRT<BR>
-> REC<BR> -> Memory<BR> -> BNA<BR> ->
CSV<BR> -> GML<BR> -> GPX<BR> -> KML<BR> ->
GeoJSON<BR> -> GMT<BR> -> ODBC<BR> -> PGeo<BR>
-> XPlane<BR> -> AVCBin<BR> -> AVCE00<BR> ->
Geoconcept</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>To assure it wasn't a syntax error, I
tried to run the simple command:</FONT></DIV>
<DIV><FONT size=2 face=Arial>> ogrinfo sourcefile.dwg</FONT></DIV>
<DIV><FONT size=2 face=Arial>and I got the same output.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am using FWTools 2.47 for Windows.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Am I missing something?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Any suggestion would be greatly
appreciated.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Carmelo</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>