GDAL (ogr2ogr) generated DXF line weight problem

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
bumsik-angelswing
Newbie Member
Posts: 8
Joined: Fri Apr 02, 2021 2:24 am

GDAL (ogr2ogr) generated DXF line weight problem

Post by bumsik-angelswing » Fri Apr 02, 2021 10:01 am

Hi, different question for the same original DXF file...
test.dxf
Original DXF file
(290.56 KiB) Downloaded 316 times
We are using your Pro product (qcad-3.26.1-pro-linux-x86_64) on Ubuntu 20.04 LTS.

We made a converted (reprojected) DXF file using ogr2ogr by GDAL:

Code: Select all

ogr2ogr -skipfailures -f DXF -s_srs EPSG:5186 -t_srs EPSG:3857 test_ogr2ogr.dxf test.dxf
test_ogr2ogr.dxf
ogr2ogr converted DXF file
(147.12 KiB) Downloaded 320 times
The problem is, that converted lines does not seem to reflect Lineweight properly.

This is the original DXF and I applied 2.11mm Lineweight:
Screenshot from 2021-04-02 17-54-12.png
original dxf
Screenshot from 2021-04-02 17-54-12.png (68.09 KiB) Viewed 3477 times
This is the original DXF and I applied 2.11mm Lineweight for the same line (polyline precisely, because ogr2ogr redraws everthing in polylines regardless of the original type)
As you can see, line is still so thin even if 2.11mm applied (but it is a bit thicker than normal lines):
Screenshot from 2021-04-02 17-55-15.png
converted dxf
Screenshot from 2021-04-02 17-55-15.png (61.22 KiB) Viewed 3477 times
Is there any configuration that I am missing?

User avatar
andrew
Site Admin
Posts: 9052
Joined: Fri Mar 30, 2007 6:07 am

Re: GDAL (ogr2ogr) generated DXF line weight problem

Post by andrew » Tue Apr 06, 2021 7:22 am

Note that the drawing unit of the original file is Millimeter and the converted file is Inch.

Edit > Drawing Preferences > General > Drawing Unit

bumsik-angelswing
Newbie Member
Posts: 8
Joined: Fri Apr 02, 2021 2:24 am

Re: GDAL (ogr2ogr) generated DXF line weight problem

Post by bumsik-angelswing » Tue Apr 13, 2021 11:34 pm

That's right! so GDAL somehow changed the property of the DXF file...thanks a lot!

Post Reply

Return to “QCAD Troubleshooting and Problems”