+ return "ST_SetSRID('%s'::geometry, 4326)" % out
+
+ def mk_wkt_point(self, point):
+ geom = point.strip()
+ if geom.find(' ') >= 0:
+ return geom
+ else:
+ pt = self.grid_node(int(geom))
+ assert_is_not_none(pt, "Point not found in grid")
+ return "%f %f" % pt