I have a lot of DWG files like base map, and water and wastewater network. I am lookin for the principal steps to import my files into my QGIS project.
|
|
It depends on what you mean wih import. Import data to actually do something with it, or just to have a background layer for viewing. Also consider this: In GIS, basic building blocks are points, lines and polygons (sometimes called basic topological types), and inside CAD, you are working with drawings which can be made of anything, including objects that cant be converted into any of before mentioned types. These would include more 'exotic' types of geometries like curves, solids, etc, also blocks (or block references), external raster references,... ArcGIS for example does a pretty good job of displaying (and even allows limited editing) of DWG/DXF files, while other GIS software packages attempt to simply import the data as best they can, because the contents of a dwg file can be too complex to have a tool that would simply translate CAD -> GIS. |
||||
|
|
|
I often recieve cad files but I don't have AutoCAD, so I break them down with DoubleCAD XT which is a free download. I export each layer or set of data by selecting it then SAVE AS (toggle the selected option) type = DXF-2004-2006. These seem to import fine into QGIS, when you open it up as a vector layer. FME server might be worth a try as well, http://fmeserver.com/userweb/sharper/Portal/EasyTranslator/index.html but I find the layer by layer approach with DoubleCAD to be more robust. To export,
Another export option I have been using is DXF Author found here http://www.mmnt.net/db/0/0/priede.bf.lu.lv/pub/TIS/failu_paarveide/shp2dxf with a user guide at ftp://priede.bf.lu.lv/pub/TIS/failu_paarveide/shp2dxf/about.htm |
||||
|
|
|
Open Source gvSIG is said to capable of opening DWGs. From there, it should be possible to export to shapefiles. Not tested here I'm afraid. Nick. |
||||
|
|
|
there is a free online-tool for converting dxf and dwg to shapefile and kml here: http://acadconverter.chrismichaelis.com/v2012/, but if not tested it in lack of a dwg |
|||
|
|
|
You can convert the DWG files to DXF (which QGIS does support) using the Teigha® File Converter. It's a free (not open source unfortunately) cross-platform application provided by the ODA to end users only for the conversion of .dwg and .dxf files to/from different versions. The following platforms are supported:
|
|||
|
|
|
DWG is a proprietary, closed format. As many would be able to confirm is one of the less interoperable formats. Long story short: it is not possible to open a DWG file with an Open Source software/library. There are/were attempts to create an OS library to read dwgs but afaik they don not work very well. If there is software other than Autodesk that can open DWGs then it uses a non open source library to do that, for this reason you will not see DWG support in QGIS. As already suggested ask to have the DWGs saved as DXF (that is somehow more interoperable) or as shapfiles (Autocad map can do that). |
|||
|
|

