I am attempting to load a CAD .dwg file into a postgreSQL database using ogr2ogr.
this is the command
ogr2ogr -f PostgreSQL "PG:host=localhost user=postgres password=*** dbname=jaffe" C:\Users\blah\Desktop\SAMCO.dwg -s_srs EPSG:4326 -lco GEOMETRY_NAME=geom
get this error
FAILURE:
Unable to open datasource `C:\Users\blah\Desktop\SAMCO.dwg' with the following drivers.
what am I doing wrong?
EDIT
I realized the CAD file has no SRID number associated with it, could that cause the problem?
DWGlisted inogrinfo --formats|sort? If not, you are out of luck. See https://gis.stackexchange.com/questions/42158/where-can-i-find-a-gdal-distribution-with-dwg-support – AndreJ Jun 13 '17 at 05:53