<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>
<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>