#7120 closed enhancement (fixed)

DXF: Improved DIMENSION support

Reported by: Alan Thomas Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: dxf
Cc:

Description

It's possible for DXF DIMENSION entities to reference an anonymous block which contains the geometry of the dimension object. In cases where this block is present, it can simply be inserted when the related DIMENSION entity is encountered. This allows OGR to render all kinds of dimensions without implementing its own renderers for all of them.

When a DIMENSION entity does not have this anonymous block attached to it, the old renderer will continue to be used as a fallback. Although it is still basic, I have made some improvements to this renderer:

  • Support for key DIMSTYLE properties (scale, arrowhead size, basic extension line properties, text height, measurement decimal places, and rudimentary text alignment support)
  • Rendering of arrowheads at the correct size (but no support for custom arrowhead blocks, I didn't think that was worth the trouble for a fallback renderer)
  • Fix text angle so the text is never upside-down
  • Support <> in text string

I have also fixed the assorted.dxf test file so it will open in AutoCAD (deduplicated the entity handles).

Change History (2)

comment:1 Changed 14 months ago by Alan Thomas

https://github.com/OSGeo/gdal/pull/257

The test failure appears unrelated.

comment:2 Changed 14 months ago by Alan Thomas

Resolution: fixed
Status: newclosed

In 40634:

DXF: Improved support for DIMENSION entities (fixes #7120)

Note: See TracTickets for help on using tickets.