We did some topographical surveys in Indonesia which are drawn in AutoCAD. It's our aim to publish them with QGIS and its webclient.
I thought the best way is to georeference the data in AutoCAD 2014. Eventually, I opened the DWG-file in AutoCAD Map 3D 2014 (see AutoCAD-Map-3D-Screenshot) because I know of it's possibility to export as SHP-file. Finally, I imported the SHP-file in QGIS (nightly built) but the result is not the expected one, see QGIS-screenshot :
The white dot(s) represents GPS-data which was correctly imported and rendered in the southern part of Nias. The blue dot(s) represents the imported SHP-files which should actually be located at the same location but are — as you can see — in the middle of nowhere.
Do you have any clue about a mistake I made?
While exporting/ importing the data I payed attention to the CRS and set it to "DGN95.UTM-47N" in AutoCAD Map 3D and to "EPSG:23867 – DGN95 / UTM zone 47N" in QGIS — which, in my opinion, should be the same one and lead to a right result. Unfortunately, it doesn't.
I already thought about the "Data source encoding" which I can set in QGIS. Right now it's set to "System". I guess Debian Wheezy (which I use for QGIS) and Windows 7 (which I use for AutoCAD [Map 3D]) use a different one — but I'd also suppose that I would not see anything at all if I import data with a wrong encoding.
Best Answer
As @DPierce pointed out:
To import AutoCAD [DWG] to QGIS [SHP] my solution is the following, having AutoCAD Map 3D (ACM3D) as a requirement. This solution is tested with AutoCAD Map 3D 2014 and QGIS 1.8 . You also need some geospatial information (in my case a GPS track) which is georeferenced correctly and is in connection with the drawing you want to import into QGIS.
You have to convert this data into a fileformat that is readable by ACM3D. I've got a GPS-Track saved in GPX which is readable by QGIS. So I imported it into QGIS and exported it as a SHP-file. This SHP-file is readable by ACM3D.
Open your DWG drawing in ACM3D. Import the SHP-file with _MAPIMPORT. (To make the following process easier use _GEOGRAPHICLOCATION and use it to georeference your drawing elements. Now it's easier to find your drwaing elements and the imported SHP-file because you have a Bing Maps as basemap.) Now, use _ADETRANSFORM to, firstly, select the elements you want to transform and, secondly, to select two source and destination points. I selected the crossing of two streets in the drawing, then selected the appropriate point in the GPS track, then selected another crossing in the drawing and another appropriate point in the GPS track. Now, the drawing elements are transformed and should fit to the GPS track. (You can now fine tune the entire setup by redoing this operation.)
If you want to, you can _GEOGRAPHICLOCATION the entire drawing again to have the Bing Maps basemap fit accordingly.
Now, you can export the Drawing as SHP with _MAPEXPORT and import it into QGIS. The drawing is now at its correct location. I'm right now at optimizing this process that drawing elemts that belong to each other are exported as an entire feature... I will update this answer when I found some appropriate solution so that this answer can be called "completely".
Here are some links that helped a bit in finding my way through this Odyssee: