[Qgis-user] Batch convert nonsense-coordinates from DWG?

Bernd Vogelgesang mail at berndvogelgesang.de
Tue Jun 3 07:25:54 PDT 2025


Hi there,

a friend received a DWG file which is (surprisingly) directly importable 
into QGIS.
The problem is, that the CAD-guys use a very strange coordinate system.

Actually, the data should be in EPSG 25833, but somehow they managed to 
scramble the x-values by adding 33 before the otherwise correct coordinates.

The imported DWG has 120 layer groups, most of them rubbish like always, 
but to find out which layers are valuable, we would need to be able to 
display them over aerial images beforehand!
Even if I knew a way to manually convert them one by one, I certainly 
would die during the process.

Does anyone have an idea how to directly manipulate the geopackage 
created during the import, e.g. with ogr commands in a bash script that 
loops over the relevant tables?
This might be a solution not to destroy the otherwise usable layout 
created during import.

Thankful for any insights,
Bernd

-- 
Dipl.-Geogr.
Bernd Vogelgesang
Kappel 17
91355 Hiltpoltstein
Tel: 09192-3499427
mobil: 0163-1860160
mail at berndvogelgesang.de



More information about the QGIS-User mailing list