Postgres allows the developer to define tables under different schemas, the 'common' schema is 'public'. I recommend you to use it as well. Web2py have few bindings for GIS queries, have a look at http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#PostGIS--SpatiaLite--and-MS-Geo--experimental-
Paolo 2016-01-09 15:17 GMT+01:00 Pierre <[email protected]>: > Thanks Paolo, > > this seem to work: > > db.define_table('geom', > Field('loc','geometry('',2154,2)')) > > I don't understand the role of the first argument: schema/public. Why > public instead of '' ? what does schema/public relate to ? > > I guess you are a web2py expert. Do you think it's wise to build a GIS App > in Web2py ? I mean coding GIS queries in raw sql, passing the arguments via > placeholders.... This doesn't sound very good to me..... > > > > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/Ad7ICaNy5Dk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.

