Opened 17 years ago

Closed 9 years ago

#1443 closed enhancement (fixed)

DgnLib - LineString with more than 101 vertices

Reported by: jll@… Owned by: warmerdam
Priority: lowest Milestone:
Component: default Version: unspecified
Severity: minor Keywords:
Cc:

Description (last modified by Jukka Rahkonen)

I tried to run dgndump (from dgnlib-1.11) with a test file containing a bad element (a line string with 102 vertices). It does not crash. However, it prints 102 vertices for this linestring while it should not since MicroStation (except V8) does not allow line strings to have more than 101 vertices.
When I check this file with the MicroStation tool EDG, I get the following :
EdG> verify after
      8    (4)  Line STRING                  Level = 1
DGN-E-BADELEM: Bad element: probably incorrect display and may not operate
DGN-E-EWTFBAD: Calculated size (421) does not match WTF (425)
DGN-I-ATTRFLAG: attributes present but not flagged
DGN-W-IXATENDD: Index to attributes does not point to end of element data
DGN-I-IDXATR: Calculated index to attributes = 407
DGN-E-VERTMAX: Number of Vertices is greater than 101

Change History (1)

comment:1 by Jukka Rahkonen, 9 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Dgnlib-1.11 was the final version and after that the code is maintained with GDAL. From http://www.gdal.org/drv_dgn.html:

Polygons and line strings with too many vertices will be split
into a group of elmements prefixed with a Complex Shape Header
or Complex Chain Header element as appropriate.

This issue seems to be fixed.

Note: See TracTickets for help on using tickets.