[Gdal-dev] DOS crlf in GDAL create() ?

Frank Warmerdam warmerdam at pobox.com
Mon Aug 6 15:55:07 EDT 2007


Dave Favis-Mortlock wrote:
> Hi -- is it possible to force DOS crlf end-of-lines when GDAL create() writes 
> ascii metadata files? 
> 
> I ask because I'm writing Idrisi output on Linux (where end-of-lines are, of 
> course, lf only). Idrisi (running under WINE) expects DOS crlf end-of-lines 
> in its .rdc metadata files. 
> 
> OK, I can write my .fdc files then convert 'em using unix2dos, but it would be 
> nice to avoid this step. I see that OGR uses a LINEFORMAT switch for .csv 
> files. Anything similar for GDAL?

Dave,

There is no generic support for this, but it could potentially be addressed
on a driver by driver basis - or if IDRISI doesn't exist on Linux, perhaps
we should just always be writing these files with DOS text format?  I'd
encourage you to file a bug on it, and we will see what Ivan says about it.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list