Wednesday, 11 April 2018

Workflow to convert a DWG CAD file to a shapefile


I'm trying to develop a workflow where I can convert a .dwg file to .shp. I don't have a good understanding of which tools I should be using. My preference is to use software that runs on OSX, is open-source (or free).


My current workflow is as follows:



  1. Convert .dwg to .dxf using Draftsight (http://www.3ds.com/products-services/draftsight/overview/ )

  2. Load .dxf into Sketchup

  3. Scale/rotate imagery in Sketchup and geolocate

  4. View in Google Earth



Once I reach step 4, I'm unsure how best to proceed. As far as I can tell, Google Earth is actually rendering a Collada model, and not loading a kml file that I can access, so I don't know how to extract the underlying file.


I thought about using ogr2ogr (http://www.gdal.org/ogr2ogr.html ) but I'm not sure if I can interact with a CAD file this way (as I need to specify the projection and location). I also have QGIS and PostGIS available. I also considered FME but would prefer not to have to have a Windows OS just for this conversion process. I've also read through the following related question: Transforming from DWG/DXF to GIS?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...