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

Lucena, Ivan ivan.lucena at pmldnet.com
Mon Aug 13 23:34:51 EDT 2007


Dave,

I just committed the fix so that the in UNIX the RST driver will 
generate the .RDC files in DOS text format.

Let me know if it works for you.

Best regards,

Ivan

Frank Warmerdam wrote:
> 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,



More information about the Gdal-dev mailing list