I have a dwg file, in a custom coordinate system
1) I'm trying to get a bbox:
Code: Select all
~/opt/qcad-3.27.1-pro-linux-x86_64/./box my dwg.dwg
Min: 86570.32755488135/26382.722042818987
Max: 87223.29994185067/26679.722042818987
Size: 652.9723869693116/297
Code: Select all
~/opt/qcad-3.27.1-pro-linux-x86_64/./dwgmapconvert -crs-in='+proj=tmerc +ellps=krass +towgs84=23.57,-140.95,-79.8,0,0.35,0.79,-0.22 + units=m +lon_0=78.05 +lat_0=0 +k_0=1 +x_0=4500000 +y_0=-11057.63' -crs-out='EPSG:3857' -o 3857.dwg mydwg.dwg
Code: Select all
~/opt/qcad-3.27.1-pro-linux-x86_64/./bbox 3857.dwg
Min: 75159.69594902138/25011.15057963294
Max: 4592719.404079856/30278.32675736996
Size: 4517559.708130835/5267.176177737019
4) Let's try to convert to 4326(WGS):
Code: Select all
~/opt/qcad-3.27.1-pro-linux-x86_64/./dwgmapconvert -crs-in='+proj=tmerc +ellps=krass +towgs84=23.57,-140.95,-79.8,0,0.35,0.79,-0.22 + units=m +lon_0=78.05 +lat_0=0 +k_0=1 +x_0=4500000 +y_0=-11057.63' -crs-out='EPSG:4326' -o 4326.dwg mydwg.dwg
Code: Select all
~/opt/qcad-3.27.1-pro-linux-x86_64/./bbox 4326.dwg
Min: 40.252429549924216/-0.7301427247460435
Max: 86740.4955602855/28105.466245804986
Size: 86700.24313073559/28106.196388529734
Conclusion:
Incorrect conversion to EPSG:3857 and EPSG:4326.
What else did I observe during the experiment:
1) If I open the source file in QCAD with a graphical interface, then there are hidden layers in it, which are located just somewhere here - 75159, 25011. Which hints that hidden layers are not converted to another coordinate system.
2) When trying to make all layers visible and try to save the file, a window is displayed that the old version of DWG (R15) is being used.
3) There are no problems with R24 and R27, but how can I solve the problem with R15?
4) There is another problem with R24 and R27. When converting it to EPSG:4326, the entire geometry turns into incomprehensible primitive wide circles. Is there a way to solve this problem?
Unfortunately, I can't attach the original vector files, as this is commercial information.
Thank you for any help!