<div dir="ltr">Hi Sergio,<div>I ended up getting the SAGA one to work by re-starting QGIS.<br><div class="gmail_extra"><div><br></div><div>The one you're referencing was the first I tried and gave me either no output or any indication anything had been done, or a Python error. Apparently it has been fixed in master though.</div>
<div>Thanks,</div><div>Jonathan</div>
<br><br><div class="gmail_quote">On 20 November 2013 12:08, Sergio Vignali <span dir="ltr"><<a href="mailto:vignalisergio30@gmail.com" target="_blank">vignalisergio30@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Jonathan,<div>there is another tool,<br><div>did you try with Vector -> Analysis Tools -> Distance matrix?</div><div><br></div><div>Regards</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/20 Jonathan Moules <span dir="ltr"><<a href="mailto:jonathanmoules@warwickshire.gov.uk" target="_blank">jonathanmoules@warwickshire.gov.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr">Hi List,
<div>I have a collection of ~2,500 points in British National Grid. I want to calculate the distance between all of them to all of them.</div><div>QGIS 2 has two tools for this as best I can tell:</div><div><br></div><div>
Processing -> "Distance matrix"</div><div>Results:</div><div><br></div><div>- "Linear" matrix type: Nothing happens whatsoever. No errors, no outputs, nothing. The dialog just disappears.</div><div>
<br></div><div>- "Standard" matrix type: I get a wall of Python error message:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Traceback (most recent call last):<br> File "C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 150, in execute<br> self.processAlgorithm(progress)<br> File "C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\algs\ftools\PointDistance.py", line 98, in processAlgorithm<br>
self.regularMatrix(inLayer, inField, targetLayer, targetField, nPoints, progress)<br> File "C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing\algs\ftools\PointDistance.py", line 178, in regularMatrix<br>
data.append(unicode(outFeat.attributes[outIdx]))<br>TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'</blockquote><div><br></div><div> Summary: Absolutely nothing happens again</div>
<div><br></div><div><br></div><div>=========</div><div>There's also a SAGA tool "Distance matrix". With this one I get an error like:</div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The following output layers could not be open<br>Distance Matrix Table: C:\Users\jmou1\AppData\Local\Temp\processing\cb88ea8b51994f1cbfe5549465bc949f\TABLE.csv</blockquote></div><div><br></div><div>Despite it being a location I can write to. That's using the temporary output. If I specify an output location myself, I get the same error.</div>
<div><br></div><div><br></div><div>So basically, it's not working; can anyone advise what I'm doing wrong? How do I use these tools? I've got three different failure modes here, which isn't very encouraging.</div>
<div><br></div><div>Cheers,</div><div>Jonathan</div>
</div></div>
<br>
</div></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br><div dir="ltr">Sergio Vignali<div>
<br></div></div>
</font></span></div>
</blockquote></div><br></div></div></div>
<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>