Bug report #22000

Wrong text orientation when importing DWG

Added by Etienne MORO almost 5 years ago.

Status:Open
Priority:High
Assignee:Jürgen Fischer
Category:DWG/DXF import
Affected QGIS version:3.4.7 Regression?:No
Operating System:Windows 7 Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29815

Description

When you import a DWG file using the command 'Import Layers from DWG/DXF', the texts (labels) get a wrong orientation.
It's just because the expression associated to the orientation of the labels is not the correct.
The right expression to use is:
360-(angle*180/pi())
whereas the expression used after import is:
360-angle
The mistake is due to the fact that the field "angle" returns angles in radians, so they have to be converted in degrees.
I've attached a DWG example to use for your tests.

plan reseau.dwg - DWG example (257 KB) Etienne MORO, 2019-05-06 10:25 AM

Also available in: Atom PDF