Hi Massimo, 
I have just tried a few examples but there is a bug in the getPoint 
function, please find attached a simple patch to fix it.
Paolo

On Monday, December 24, 2012 7:21:12 PM UTC+1, Massimo Di Pierro wrote:
>
> Thank you Denes. Would you please check my changes. I do not think I broke 
> anything but I tried to make it so that it always returns st_astext if not 
> specified and created Python functions to generate 
> geoPoint/geoLine/geoPolygon. I think it makes code more readable. 
>
> On Monday, 24 December 2012 12:13:39 UTC-6, DenesL wrote:
>>
>>
>> The original post (Spatial / GIS support in DAL):
>> https://groups.google.com/d/topic/web2py/feh1ksfdkGk/discussion
>>
>>
>>

-- 



diff --git a/gluon/dal.py b/gluon/dal.py
index e0bf056..00db5f0 100644
--- a/gluon/dal.py
+++ b/gluon/dal.py
@@ -9736,7 +9736,7 @@ DAL.Table = Table  # was necessary in gluon/globals.py session.connect
 # Geodal utils
 ################################################################################
 
-def geoPoint(*line):
+def geoPoint(x, y):
     return "POINT (%f %f)" % (x,y)
 
 def geoLine(*line):

Reply via email to