Fix possible bug in .similar_features() (wkt)

This commit is contained in:
Schuyler Erle 2011-08-27 19:19:57 -07:00
parent 797d3e3953
commit 5ed70efd54

View File

@ -82,7 +82,7 @@ class Feature(models.Model):
) AS whatever
WHERE %f * similarity / distance >= 1.0
ORDER BY similarity / distance DESC"""
% (scale_factor, name, self.geometry, self.geometry,
% (scale_factor, name, self.geometry.wkt, self.geometry.wkt,
max_distance*0.00001, name, scale_factor)
)
result_list = []