Trying to run a simple script using qgis:joinbylocation
but getting either errors or it's not processing correctly. I don't want to take a summary of the attributes, just the attributes of the first located feature and I want to keep all records. The parameter selections should be correct but it's the sum,mean,min,max,median
that's causing problems. I tried removing them but python wasn't too happy. Also (for some reason) python doesn't recognise mean
or median
but is fine with the other statistical terms.
Any advice please?
##Test=name
##File_1=file
##File_2=file
##Output=output vector
mean=None
median=None
processing.runalg("qgis:joinbylocation", File_1, File_2, 0, sum,mean,min,max,median, 0, 1, Output)