<div>Frank,</div>
<div>&nbsp;</div>
<div>You&#39;re right, I meant CRLF not LF (under Linux, fo Windows). I have tried to correct it but got another delivery error (550 5.1.1 User unknown). It finally worked with a parameter -lco like this:</div>
<div>&nbsp;</div>
<div>&nbsp; ogr2ogr -f CSV out Bahnhoefe.shp -sql &quot;select *,OGR_GEOM_WKT from Bahnhoefe&quot; -lco &quot;LINEFORMAT=LF&quot;<br>&nbsp;</div>
<div>I actually thought that&nbsp;-dsco would serve as a defailt for all layers (-lco) because I don&#39;t bother too much about layer names.. </div>
<div>&nbsp;</div>
<div>-- Stefan<br>&nbsp;</div>
<div><span class="gmail_quote">2008/1/4, Frank Warmerdam &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>&gt;:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Stefan Keller wrote:<br>&gt; (Sorry for double postings, I&#39;m getting 550 5.1.1 User unknown errors),<br>
&gt;<br>&gt; Dear all<br>&gt;<br>&gt; This works but it ignores LINEFORMAT=LF: The resulting file always<br>&gt; contains LF. What am I doing wrong?<br>&gt;<br>&gt; $ ogr2ogr -f CSV out MyShape.shp -sql &quot;select *,OGR_GOM_WKT from 
<br>&gt; MyShape&quot; -dsco LINEFORMAT=LF<br>&gt;<br>&gt; (I&#39;m using Windows XP with GDAL 1.5.0b1, FWTools 2.0.2, released 2007/12/05)<br><br>Stefan,<br><br>You wrote that ogr2ogr ignores LINEFORMAT=LF and always products files 
<br>with line feeds.&nbsp;&nbsp;Perhaps you mean that it always produces CRLF?<br><br>Looking in the code I see LINEFORMAT is a layer creation option, not a<br>datasource creation option.&nbsp;&nbsp;So it should be specified with -lco instead 
<br>of -dsco.&nbsp;&nbsp;Perhaps that is the root of your problem?&nbsp;&nbsp;I have made an effort<br>to clarify this in the documentation.<br><br>Best regards,<br>--<br>---------------------------------------+-------------------------------------- 
<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam </a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://osgeo.org/" target="_blank">
http://osgeo.org</a><br><br></blockquote></div><br>