Ticket #3321 (assigned defect)

Opened 3 years ago

Last modified 3 years ago

dxf-reader: detection of dashed lines

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

Description (last modified by warmerdam) (diff)

In the example "fuaggeobau.dxf" (available to Frank), the detection of dashed lines is not working as expected.

The following element has LTYP 9, which is defined as dashed in the AcDbLinetypeTableRecord?. It would be good if this linetype could be exposed in the Style-String according to OGR Feature Styling.:

OGRFeature(entities):1964
  Layer (String) = 01311
  SubClasses (String) = AcDbEntity:AcDbPolyline
  ExtendedEntity (String) = { AV_EO_Linienele FID: 10749  {         0 } }
  Linetype (String) = LTYP9
  EntityHandle (String) = 3BA81
  Text (String) = (null)
  Style = PEN(c:#ffffff)
  LINESTRING : 6 points

Attachments

dashed_line_dxf.png Download (67.4 KB) - added by neumann 3 years ago.
The attached file shows the dashed line (left of the text label 508)

Change History

Changed 3 years ago by neumann

The attached file shows the dashed line (left of the text label 508)

Changed 3 years ago by warmerdam

  • keywords dxf added
  • status changed from new to assigned
  • version changed from unspecified to svn-trunk
  • component changed from default to OGR_SF
  • description modified (diff)

Changed 3 years ago by warmerdam

Currently the DXF driver does not attempt to read the line types table, nor deduce line patterns. I'm also not aware of any client applications utilizing the line patterns part of the OGR style specification so it would be hard to test correctness of translation.

The LTYPE table contains this excerpt describing the line style dot/dash pattern.

 72
    65
 73
     2
 40
0.17
 49
0.1
 74
     0
 49
-0.07
 74

I am going to defer activity on this for the time being. I'm not positive this is a good can of worms to open.

Note: See TracTickets for help on using tickets.