QGIS – How to Georeference a DXF File in Version 2.14

dxfgeoreferencingpdfqgis

In Illustrator I exported a PDF as DXF and inserted it in QGIS as Vector and obtained two layers as points and lines but it is misaligned and in a unknown location.

I know georeference a raster file, but not a PDF or DXF.

The PDF file is the first one (named "Caracterização Geral") here in this link: Caracterização Geral PDF file. It say "PT-TM06/ETRS89".

This is the DXF file in my Google Drive.

I can locate one point, the City Hall – 41.1298608, -8.6066119 [41°07'47.5"N 8°36'23.8"W]. Is the layer called "Câmara_Municipal" in PDF file, a cyan color point.

My project is EPSG: 3857 / WGS 84 / Pseudo Mercator

  • First layer is a Bing Aerial (Web > OpenLayersPlugin > BingMaps >
    Bing Aerial) – CRS: EPSG 3857 / WGS 84 / Pseudo Mercator

  • Another layers with shapefiles lines and points captured from OSM. – CRS: ESPG 4326 / WGS84, which is OK on top the base layer.

Best Answer

  1. You can use affine transformation plugin if you know the offset of the vectors, DXF have to be converted to QGIS editable format (e.g. shapefile)
  2. You can use LibreCAD to translate the DXF file
  3. You can use SurveyingCalculation plugin to calculate transformation parameters from coordinates given in source and target CRS