<div dir="ltr"><div><div><div><div><div><div><div><div>Even,<br><br></div>I noticed that "Plain Geometry Editor" plugin (and also my "WktExport" plugin :) saves some elements as<br><br>" LineStringZ " <br><br></div>that of course have also the Z.<br><br></div>This is good for my use (the 3D digitizing) , but I am asking : is it a new of QGIS 2.10, or it just exists before ?<br><br></div>So, my need is to display these Z, for each point of the lines. There is a way to do this ? I tried with "processing > SAGA > Shapes-Points > convert lines to points" but, the result is a points layer without Z.<br><br></div>Also, Layer property panel do not permits to display the Z value as Label.<br><br></div>Any other suggestion to display Z values ?<br><br><br></div>Thank you<br><br></div>Roberto<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-25 16:28 GMT+02:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le mardi 25 août 2015 16:22:13, Geo DrinX a écrit :<br>
> Side remark. Your plugin probably makes it a bit more convenient, but you<br>
><br>
> > can<br>
> > already get the geometries in WKT format with "Save as", select CSV and<br>
> > enter<br>
> > GEOMETRY=AS_WKT as layer creation option (cf<br>
> > <a href="http://www.gdal.org/drv_csv.html" rel="noreferrer" target="_blank">http://www.gdal.org/drv_csv.html</a>)<br>
><br>
> Touche' , Even :)<br>
><br>
> I do not know that is possible to do the same with save as... :(<br>
><br>
> BTW, great ! There is some documentation for this ? I will browse<br>
> QGIS manuals.<br>
><br>
> Sure, my method is more immediate, and more convenient for my own use.<br>
> For the rest of the world, I agree with you : a generic user, can use<br>
> "Save as..." CSV and enter "GEOM=ASWKT"<br>
> and... it does not work ! What is the correct syntax ? I do not<br>
> remember: I need to try again... perhaps: "GEOMETRY=ASWKT". No, it do<br>
> not work again... etcetera.<br>
<br>
</span>Indeed, the good news is that with GDAL 2.0, OGR drivers now have metadata. So<br>
instead/in addition of a free text zone, the list of options could now<br>
potentially be automatically generated by inspecting driver metadata<br>
<br>
$ ogrinfo --format csv<br>
Format Details:<br>
Short Name: CSV<br>
Long Name: Comma Separated Value (.csv)<br>
Supports: Vector<br>
Extension: csv<br>
Help Topic: drv_csv.html<br>
Supports: Open() - Open existing dataset.<br>
Supports: Create() - Create writeable dataset.<br>
Supports: Virtual IO - eg. /vsimem/<br>
Creation Field Datatypes: Integer Integer64 Real String Date DateTime Time<br>
<br>
<CreationOptionList><br>
<Option name="GEOMETRY" type="string-select" description="how to encode<br>
geometry fields"><br>
<Value>AS_WKT</Value><br>
</Option><br>
</CreationOptionList><br>
<br>
<br>
<LayerCreationOptionList><br>
<Option name="SEPARATOR" type="string-select" description="field separator"<br>
default="COMMA"><br>
<Value>COMMA</Value><br>
<Value>SEMICOLON</Value><br>
<Value>TAB</Value><br>
<Value>SPACE</Value><br>
</Option><br>
<Option name="LINEFORMAT" type="string-select" description="end-of-line<br>
sequence" default="LF"><br>
<Value>CRLF</Value><br>
<Value>LF</Value><br>
</Option><br>
<Option name="GEOMETRY" type="string-select" description="how to encode<br>
geometry fields"><br>
<Value>AS_WKT</Value><br>
<Value>AS_XYZ</Value><br>
<Value>AS_XY</Value><br>
<Value>AS_YX</Value><br>
</Option><br>
<Option name="CREATE_CSVT" type="boolean" description="whether to create a<br>
.csvt file" default="NO" /><br>
<Option name="WRITE_BOM" type="boolean" description="whether to write a<br>
UTF-8 BOM prefix" default="NO" /><br>
<Option name="GEOMETRY_NAME" type="string" description="Name of geometry<br>
column. Only used if GEOMETRY=AS_WKT" default="WKT" /><br>
</LayerCreationOptionList><br>
<br>
<OpenOptionList><br>
<Option name="MERGE_SEPARATOR" type="boolean" description="whether to merge<br>
consecutive separators" default="NO" /><br>
<Option name="AUTODETECT_TYPE" type="boolean" description="whether to guess<br>
data type from first bytes of the file" default="NO" /><br>
<Option name="KEEP_SOURCE_COLUMNS" type="boolean" description="whether to<br>
add original columns whose guessed data type is not String. Only used if<br>
AUTODETECT_TYPE=YES" default="NO" /><br>
<Option name="AUTODETECT_WIDTH" type="string-select" description="whether to<br>
auto-detect width/precision. Only used if AUTODETECT_TYPE=YES" default="NO"><br>
<Value>YES</Value><br>
<Value>NO</Value><br>
<Value>STRING_ONLY</Value><br>
</Option><br>
<Option name="AUTODETECT_SIZE_LIMIT" type="int" description="number of bytes<br>
to inspect for auto-detection of data type. Only used if AUTODETECT_TYPE=YES"<br>
default="1000000" /><br>
<Option name="QUOTED_FIELDS_AS_STRING" type="boolean" description="Only used<br>
if AUTODETECT_TYPE=YES. Whether to enforce quoted fields as string fields."<br>
default="NO" /><br>
<Option name="X_POSSIBLE_NAMES" type="string" description="Comma separated<br>
list of possible names for X/longitude coordinate of a point." /><br>
<Option name="Y_POSSIBLE_NAMES" type="string" description="Comma separated<br>
list of possible names for Y/latitude coordinate of a point." /><br>
<Option name="Z_POSSIBLE_NAMES" type="string" description="Comma separated<br>
list of possible names for Z/elevation coordinate of a point." /><br>
<Option name="GEOM_POSSIBLE_NAMES" type="string" description="Comma<br>
separated list of possible names for geometry columns." default="WKT" /><br>
<Option name="KEEP_GEOM_COLUMNS" type="boolean" description="whether to add<br>
original x/y/geometry columns as regular fields." default="YES" /><br>
<Option name="HEADERS" type="string-select" description="Whether the first<br>
line of the file contains column names or not" default="AUTO"><br>
<Value>YES</Value><br>
<Value>NO</Value><br>
<Value>AUTO</Value><br>
</Option><br>
</OpenOptionList><br>
<span class="im HOEnZb"><br>
<br>
><br>
> :)<br>
><br>
> Yes, I think my plugin can be useful to all of us "QGIS dummies" :)<br>
><br>
> If you think, I can insert a message that explains: "You can also use<br>
> 'Save as... CSV GEOMETRY=AS_WKT'<br>
><br>
> :)<br>
><br>
> Of course, I am joking.<br>
><br>
><br>
> Happy holidays<br>
><br>
><br>
> Roberto<br>
<br>
</span><div class="HOEnZb"><div class="h5">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br></div>