Closed loicroybon closed 3 years ago
CC @atlight
I'm aware of this issue. It seems to appear when using ODA conversion tools to convert a Bentley MicroStation .dgn file to a DXF file and then using GDAL to read that DXF file.
This DXF file is probably "invalid", as lines are not supposed to be longer than 255 characters, but as we know, the term "invalid" is meaningless when it comes to the DXF format. I think the correct solution is to implement special handing in OGRDXFReader to skip over these long lines, as the information they contain is useless.
At this step, I had to modify the DXF file content with a python script before launching ogrinfo. My script remove lines from $CUSTOMPROPERTYTAG
to $INSBASE
. I don't know if this method will work each time. Probably not.
I confess I do a similar thing in my code. It would be better to have a solution in GDAL itself, of course!
Hello,
orginfo can't display dxf file informations containing those headers :
but if I remove some lines like this, orginfo is able to read the file
Could you fix this please and ingnor or delete DXF CUSTOMPROPERTYTAG ?
Thanks a lot