Hi Pierre,
try to define the table as follows
db.define_table('geom',
                Field('loc','geometry(public, 2154, 2)'))
By doing that you define the column *loc* with srid=2154. Notice that 
'public' is the schema, and 2 is the dimension.

Paolo

On Thursday, January 7, 2016 at 7:21:40 PM UTC+1, Pierre wrote:
>
>
> As I understand it web2py geometry field uses SRID 4326 by default. Is 
>> there a way to tell it to use another SRID ?
>>
> or do I have to first create the table with a define_table and then the 
> correct geometry field with a raw SQL addcolumn command == a lot of 
> gesticulation for a simple task
>
> Am I wasting my time trying to do GIS in web2py ?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to