[GIS] Georeferencing DXF file to use in Google Earth

dxfgeoreferencingkml

I have read up on several questions that seen to have similar problems in georeferencing dxf files from CAD. None of them are clear, so I am trying here.

I have CAD files of solar plant layouts, roads, fences, etc in DWG format. I have used Any DWG DXF Converter to convert into DXF, which I can open in QGIS. The problem is there are no recognisable scales or coordinate system. The scale is currently 1:377579882 when viewing the plant layout from just above and the coordinate on the mouse point is 95675, -3008800.

I have tried reading about the Affine plug in, but can't work out how to use it as the the Transformation Matrix makes little sense without explanation. I have tried using and reading up on the V.Transform module in GRASS, but I don't know what the "Shifting Value for X and Y coordinates" is or the "Scaling Factor for X and Y coordinates" – None of the previous answers seem to actually tell users how to run these modules or find the correct inputs.

The purpose of this exercise is to take the CAD files (which I can make into DXF), load them in QGIS (possible convert to Shapefile if necessary) and save them as KML files to open in Google Maps.

Best Answer

There are already many answers as you stated. But did you try Vector bender from the second answer here, that also have a video linked how it works? Georeferencing DXF using QGIS?

That you don´t understand the other tools might be due the problem of the topic in general. Your dxf has no information about what kind of data it is. A solar plant could be 5meters long, 500 or whatever. The program does not know. You could find out the scaling by measuring a line of your imported dxf and compare it to the real length of the line. The real length you need to find out, either by knowing (the exact length of a house for example), or when you have other data (like a aerial picture) where you could identifiy and measure the same line. Then you divide both values and you have your scaling that you can put in for x and y scaling factor. (as a sidenote: i assume that most coordinate references have equal x/y scaling and that the differences from unequal distortion doesn´t matter on small areas)

The second point is that the program does not know where the solar plant is. So you need coordinates. Again: Take a map or aerial picture with coordinate reference, load it and find a common point in your dxf and the other map/picture. Look at the coordinates of both points in both views and substract the x and y values. That will be your x and y shift.

If a rotation is needed you measure the angle the same way with the measure tool and the angle of common lines.