<p dir="ltr">Wayne,</p>
<p dir="ltr">The SOUNDG layer has multipoint geometries. So, there are multiple z values for each feature. You can use the -explodecollections option as long as your gd as long version is at least 1.8.</p>
<div class="gmail_quote">On 14 Aug 2014 18:24, "Duguay, Wayne" <<a href="mailto:Wayne.Duguay@merinov.ca">Wayne.Duguay@merinov.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FR-CA" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Segoe UI","sans-serif"">My goal is extracting X,Y,Z geometries from ENC S-57 SOUNDG layer cause I can’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’m able to do it with –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’s the result:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Segoe UI","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">C:\windows\system32>ogr2ogr.exe -skipfailures -f "CSV" "C:\users\username\Desktop\csv" “C:\Users\username\Desktop\shp\soundg.shp" -lco GEOMETRY=AS_XYZ -nlt MULTIPOINT25D<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Warning 1: Geometry type 3D Multi Point is not compatible with GEOMETRY=AS_XYZ.<u></u><u></u></span></p>
</div>
</div>
<br>_______________________________________________<br>
FWTools mailing list<br>
<a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/fwtools" target="_blank">http://lists.maptools.org/mailman/listinfo/fwtools</a><br>
<a href="http://fwtools.maptools.org/" target="_blank">http://fwtools.maptools.org/</a><br>
<br></blockquote></div>