[FWTools] DWG to SHP conversion - "unable to open datasource"

Chaitanya kumar CH chaitanya.ch at gmail.com
Mon Feb 27 09:21:28 EST 2012


Carmelo,

FWTools for windows is pretty old. I suggest using the OSGeo4W
installer[1]. It contains the latest release.

[1]:   http://trac.osgeo.org/osgeo4w/#QuickStartforOSGeo4WUsers

On Mon, Feb 27, 2012 at 5:03 PM, Carmelo Consiglio <cconsiglio at spi-imp.it>wrote:

> **
> Hi everybody.
> I need to convert some autocad .dwg files to ESRI Shapefiles.
> Someone on the web suggested that gdal/ogr2ogr was able to perform such
> conversion, even if only with .dwg files version 2000 or before.
> My problem is that in my environment gdal/ogr seems not to be able to
> access .dwg.
>
> In fact when I run
> > ogr2ogr -f "ESRI Shapefile" destfile.shp sourcefile.dwg
> I get the following error:
>
> FAILURE:
> Unable to open datasource `ANZIO_TOP2000.dwg' with the following drivers.
>   -> ESRI Shapefile
>   -> MapInfo File
>   -> UK .NTF
>   -> SDTS
>   -> TIGER
>   -> S57
>   -> DGN
>   -> VRT
>   -> REC
>   -> Memory
>   -> BNA
>   -> CSV
>   -> GML
>   -> GPX
>   -> KML
>   -> GeoJSON
>   -> GMT
>   -> ODBC
>   -> PGeo
>   -> XPlane
>   -> AVCBin
>   -> AVCE00
>   -> Geoconcept
>
> To assure it wasn't a syntax error, I tried to run the simple command:
> > ogrinfo sourcefile.dwg
> and I got the same output.
>
> I am using FWTools 2.47 for Windows.
>
> Am I missing something?
>
> Any suggestion would be greatly appreciated.
>
> Carmelo
>
>
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>
>


-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20120227/512f429f/attachment.htm 


More information about the FWTools mailing list