1

I am trying to use QGIS to georeference a CAD file. I open Raster/Georeferencer and then click on the Open Raster icon. The first time I tried this it warned me that it would only accept DWG R2000 [ACAD1015]. So my colleague has exported from AutoCAD in DWG R2000.

However, as soon as I select this file and click Open, QGIS crashes. I don't believe there is an issue with the file as it opens fine in ArcGIS.

I tried this in 3.22 first and then upgraded to QGIS 3.24. However, I get the same response.

7
  • I suggest you colleague moves the drawing to the correct place using CAD and a local UTM zone. This is highly recommendable when you need to interchange data between CAD and GIS.
    – Erik
    Commented Mar 1, 2022 at 11:10
  • Does QGIS really crash? It shouldn't so crash would be a bug. But does your dwg file contain raster layers? If I try to open a vector dwg with raster georeferencer I get a message "This raster file has no bands and is invalid as raster layer". If you have vector dwg perhaps this blog helps with it mkrgeo-blog.com/….
    – user30184
    Commented Mar 1, 2022 at 11:20
  • Yes, it does indeed crash - I checked again. It might be an issue with the CAD file but even so it should not crash without a warning. So I will raise a bug report but I didn't want to do that first incase I was perhaps doing something obviously wrong. I see that blog but it doesn't give me an approach that is sufficiently accurate.
    – P. Krause
    Commented Mar 1, 2022 at 12:57
  • Erik - thanks for the comment. We have tried adding the local UTM zone. However, as far as I can see the CRS information is not transferred in DWG or DXF so QGIS (and ArcGIS) always treat the file as having a local coordinate system and so locate it in the Gulf of Guinea off the coast of Ghana. Do you know of a way to ensure the CAD file gets placed according to a global coordinate?
    – P. Krause
    Commented Mar 1, 2022 at 13:01
  • Do you have rasters layers in your CAD file gdal.org/drivers/raster/cad.html or does it contain only vectors gdal.org/drivers/vector/dwg.html?
    – user30184
    Commented Mar 1, 2022 at 17:24

2 Answers 2

1

You can try to use the plugin « vector bender »! I was able to georeference vector layers without problem…

0

QGIS cannot georeference a vector DWG at present, although vector georeferencing will be available in an upcoming release. The crash should not have happened, however, and is being investigated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.