Fix possible bug in .similar_features() (wkt)
This commit is contained in:
parent
797d3e3953
commit
5ed70efd54
|
@ -82,7 +82,7 @@ class Feature(models.Model):
|
||||||
) AS whatever
|
) AS whatever
|
||||||
WHERE %f * similarity / distance >= 1.0
|
WHERE %f * similarity / distance >= 1.0
|
||||||
ORDER BY similarity / distance DESC"""
|
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)
|
max_distance*0.00001, name, scale_factor)
|
||||||
)
|
)
|
||||||
result_list = []
|
result_list = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user