[GIS] Autocad DXF to Qgis and exporting to KML for viewing in Google Maps

dxfkmlqgiswgs84

/ Background: I have a DWG trace made in AutoCad using Gauss-Kruger coordinate system ( a CRS used in Slovenia ). I'm using AutoDesk Map 3D to transform the coordinate system to WGS84.PseudoMercator EPSG:3857 which is required by Google to show traces on maps. /

I saved the drawing as DXF file, opened it in QGIS, set both project and layers as WGS84.PseudoMercator EPSG:3857 CRS, enabled 'on the fly CRS transformation' and exported the layers to a KML file (Google format) and tried opening them in Google Maps.

However, the trace is shown in the ocean near Nigerian coast instead of Slovenia.

I also tried opening shapefiles in qgis in viewing the trace with OpenLayers plugin but it makes no difference.

I'm new to this software and CRS.

Best Answer

A KML file stores coordinates as latitude, logitude (WGS84). Steps to do in QGIS:

  1. load your dxf
  2. set (double check) the projection setting of your dxf layer
  3. right click on the layer name in the layer list and select save as
  4. set the output format to KML and the projection to WGS84 (epsg:4326)
  5. simply open your kml file in google earth

I hope it helps you

Related Question