Skip to content

Commit

Permalink
[FIX] from_latlon method srdi was incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
alan196 committed Sep 10, 2016
1 parent 04a7615 commit 66e7cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_geoengine/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 66e7cb0

Please sign in to comment.