Skip to content

Commit

Permalink
Merge pull request #106 from Jarsa-dev/9.0-alan196-fix-from_latlon
Browse files Browse the repository at this point in the history
[FIX] from_latlon method srdi was incorrect
  • Loading branch information
yvaucher authored Sep 12, 2016
2 parents 04a7615 + 66e7cb0 commit 610ed82
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 610ed82

Please sign in to comment.