Carmelo,<div><br></div><div>FWTools for windows is pretty old. I suggest using the OSGeo4W installer[1]. It contains the latest release.</div><div><br></div><div>[1]: <font color="#0000ee"><a href="http://trac.osgeo.org/osgeo4w/#QuickStartforOSGeo4WUsers">http://trac.osgeo.org/osgeo4w/#QuickStartforOSGeo4WUsers</a></font><br>
<br><div class="gmail_quote">On Mon, Feb 27, 2012 at 5:03 PM, Carmelo Consiglio <span dir="ltr"><<a href="mailto:cconsiglio@spi-imp.it">cconsiglio@spi-imp.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff">
<div><font face="Arial">Hi everybody.</font></div>
<div><font face="Arial">I need to convert some autocad .dwg files to ESRI
Shapefiles.</font></div>
<div><font 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 face="Arial">My problem is that in my environment gdal/ogr seems
not to be able to access .dwg.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">In fact when I run </font></div>
<div><font face="Arial">> <font face="Arial">ogr2ogr -f "ESRI
Shapefile" destfile.shp sourcefile.dwg</font></font></div>
<div><font face="Arial">I get the following error:</font><font face="Arial"></font></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</div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">To assure it wasn't a syntax error, I
tried to run the simple command:</font></div>
<div><font face="Arial">> ogrinfo sourcefile.dwg</font></div>
<div><font face="Arial">and I got the same output.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">I am using FWTools 2.47 for Windows.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Am I missing something?</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Any suggestion would be greatly
appreciated.</font></div><span class="HOEnZb"><font color="#888888">
<div><font face="Arial"></font> </div>
<div><font face="Arial">Carmelo</font></div>
<div><font face="Arial"></font> </div></font></span></div>
<br>_______________________________________________<br>
FWTools mailing list<br>
<a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>
</div>