DXF creation failed.
|Reported by:||lucien||Owned by:||warmerdam|
Trying to convert a shapefile to a DXF using the following command on Windows: ogr2ogr.exe -f "DXF" fluss_poly_combioula2.dxf fluss_poly_combioula.shp won’t work. It log the following message :
- ERROR 4: Failed to open template header file ' ' for reading.
- ERROR 4: Failed to open template trailer file ' ' for reading.
- DXF driver failed to create fluss_poly_combioula2.dxf
In my code NULL is returned when calling the CreateDataSource function:
m_DataSource = pDriver->CreateDataSource(myHomeMadePath, NULL);
The strange part is that similar code is perfectly working on Mac. It seems that OGR isn’t able to found header.dxf and footer.dxf although they are both in the DATA folder.
I’m using the latest trunk (18570) either on Mac and Windows.