From 66e7cb05674bf976c1b8b35e25732abc15545c7a Mon Sep 17 00:00:00 2001 From: Alan Ramos Date: Sat, 10 Sep 2016 13:25:45 -0500 Subject: [PATCH] [FIX] from_latlon method srdi was incorrect --- base_geoengine/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_geoengine/fields.py b/base_geoengine/fields.py index e06787335b..6627e63066 100644 --- a/base_geoengine/fields.py +++ b/base_geoengine/fields.py @@ -103,7 +103,7 @@ def from_latlon(cls, cr, latitude, longitude): ST_GeomFromText(%(wkt)s, 4326), %(srid)s) """, {'wkt': pt.wkt, - 'srid': cls.srid}) + 'srid': cls._slots['srid']}) res = cr.fetchone() return cls.load_geo(res[0])