<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Segoe UI","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-CA" style="font-family:&quot;Segoe UI&quot;,&quot;sans-serif&quot;">My goal is extracting X,Y,Z geometries from ENC S-57 SOUNDG layer cause I can&#8217;t display Z value as water depth from this layer in QGis. So I was able to convert the layer to
 SHP file with FWTools. Now I want to convert my SHP file to CSV. I&#8217;m able to do it with &#8211;LCO GEOMETRY=AS_WKT but I would like the output to be one separated column for x,y and z. I read the documentation and saw that AS_XYZ was especially made for this purpose
 so I tried it and here&#8217;s the result:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:&quot;Segoe UI&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:&quot;Courier New&quot;">C:\windows\system32&gt;ogr2ogr.exe -skipfailures -f &quot;CSV&quot; &quot;C:\users\username\Desktop\csv&quot; &#8220;C:\Users\username\Desktop\shp\soundg.shp&quot; -lco GEOMETRY=AS_XYZ -nlt MULTIPOINT25D<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:&quot;Courier New&quot;">Warning 1: Geometry type 3D Multi Point is not compatible with GEOMETRY=AS_XYZ.<o:p></o:p></span></p>
</div>
</body>
</html>