<div dir="ltr"><div>Hi, I could narrow down the error to negative coordinates:</div><div><br></div><div>This works on the console:<br></div><div><div style="color:rgb(0,0,0);font-size:16px">>>> QgsGeometry.fromWkt('<wbr>MULTIPOINTZ(2 2 4,3 3 4)').exportToWkt()</div><div style="color:rgb(0,0,0);font-size:16px">u'MultiPointZ ((2 2 4),(3 3 4))'</div><div style="color:rgb(0,0,0);font-size:16px"><br></div><div style="color:rgb(0,0,0);font-size:16px">But this does not:</div></div><div style="color:rgb(0,0,0);font-size:16px"><br></div><div><div style="color:rgb(0,0,0);font-size:16px">>>> QgsGeometry.fromWkt('MULTIPOINTZ(-2 2 4,3 3 4)').exportToWkt()</div><div style="color:rgb(0,0,0);font-size:16px">Traceback (most recent call last):</div><div style="color:rgb(0,0,0);font-size:16px">  File "<input>", line 1, in <module></div><div style="color:rgb(0,0,0);font-size:16px">AttributeError: 'NoneType' object has no attribute 'exportToWkt'</div><div style="color:rgb(0,0,0);font-size:16px"><br></div><div style="color:rgb(0,0,0);font-size:16px">So negative coordinates do not work without parentheses, surprisingly. Perhaps some oversight in parsing.</div><div style="color:rgb(0,0,0);font-size:16px"><br></div><div style="color:rgb(0,0,0);font-size:16px">But negative coordinates work with parentheses:</div><div style="color:rgb(0,0,0);font-size:16px"><br></div><div><div><font color="#000000"><span style="font-size:16px">>>> QgsGeometry.fromWkt('MULTIPOINTZ((-2 2 4),(3 3 4))').exportToWkt()</span></font></div><div><font color="#000000"><span style="font-size:16px">u'MultiPointZ ((-2 2 4),(3 3 4))'</span></font></div></div><div><font color="#000000"><span style="font-size:16px"><br></span></font></div><div><font color="#000000"><span style="font-size:16px">If there are no objections, I will file a report on the bug tracker.</span></font></div><div><font color="#000000"><span style="font-size:16px"><br></span></font></div><div><font color="#000000"><span style="font-size:16px">-Andreas</span></font></div><div style="color:rgb(0,0,0);font-size:16px"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 7:09 PM, Andreas Plesch <span dir="ltr"><<a href="mailto:andreasplesch@netscape.net" target="_blank">andreasplesch@netscape.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_quote">Hi</div><div class="gmail_quote" dir="auto"><br><blockquote class="m_-3540671510186272748quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Using 2.18.3, I found that Add Delimited Text Layer required a WKT of the form:</div><div><br></div>MULTIPOINT Z ((-119.00 34.82 1487),(-119.01 34.81 1450))<div><br></div><div>rather than just<br><div><br></div><div>MULTIPOINT Z (-119.00 34.82 1487,-119.01 34.81 1450)<br></div><div><br></div><div>without the internal parentheses which is also allowed, and perhaps more common.</div><div><br></div><div>I searched through the bug tracker for 'MULTIPOINT' but could not find a relevant issue.</div><div><br></div><div>Did anybody come across this ?</div><div><br></div><div>On a related note, I did this in order to convert a LINESTRINGZ to POINTZ since the Extract Nodes tool did not preserve Z. CSV Exporting, text editing and reimporting as MULTIPOINTZ seemed the easiest option. Is there another option ?</div><div><br></div><div>Thanks, Andreas </div><span class="HOEnZb"><font color="#888888"><font color="#888888"><div><br></div>-- <br><div class="m_-3540671510186272748m_6205453221603329169gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</font></font></span></div></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div>