OGR dxf driver, spline entity not read correctly
|Reported by:||perob||Owned by:||warmerdam|
|Severity:||normal||Keywords:||ogr, dxf, driver, spline|
There are many methods to create splines, but at the end they are all defined with degree, control points, weights and knots. Currently dxf driver reads only control points and degree data from dxf file, but weights (present if not all are 1) and knots are stored in dxf file too.
Sample drawing is attached. Within drawing splines are converted to polylines and placed above splines. ogr2ogr output of sample is also attached.
Attached screenshot shows ogr output of sample dxf file.
Samples show that dxf driver fails when: 1) splines have weights other than 1 associated with control points - because it doesn't read them and 2) splines are defined as closed - because it adds unnecessary control points.
I will submit pull request for this issue.