Skip to content

Conversation

dl3sdo
Copy link
Member

@dl3sdo dl3sdo commented Apr 11, 2025

The DXF driver of GDAL/OGR does not (yet) import the rotation angle of point objects (code 50).
However, the driver stores all codes which are not handled by the driver itself in a generic field 'RawCodeValues' if the driver is configured with DXF_INCLUDE_RAW_CODE_VALUES being set to TRUE.
Parse the 'RawCodeValues' field for the occurrence of a code 50 property and set the rotation angle accordingly.

Closes GH-2133 (Point object angle/rotation is lost during DXF import).

The DXF driver of GDAL/OGR does not (yet) import the rotation angle
of point objects (code 50).
However, the driver stores all codes which are not handled by the
driver itself in a generic field 'RawCodeValues' if the driver is
configured with DXF_INCLUDE_RAW_CODE_VALUES being set to TRUE.
Parse the 'RawCodeValues' field for the occurrence of a code 50
property and set the rotation angle accordingly.

Closes OpenOrienteeringGH-2133 (Point object angle/rotation is lost during DXF import).
@dl3sdo dl3sdo marked this pull request as draft April 11, 2025 22:23
@dl3sdo
Copy link
Member Author

dl3sdo commented Apr 11, 2025

I propose to merge #2136 first and then evaluate this PR.
Todos:

  1. Add a test
  2. Consider adding DXF_INCLUDE_RAW_CODE_VALUES = TRUE to the GDAL/OGR section of Mapper's Settings dialog:
    ExtendedSettings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Point object angle/rotation is lost during DXF import

1 participant