or: with db.connect (QGIS-Version) you can't use the optional parameter schema. If you want to connect to a database providing schemas you have to use db.connect.schema
I guess the db.connect Version of QGIS is just for not "bothering" normal users who don't know about schemas ;-) Marco Markus Neteler schrieb: > On Wed, Mar 25, 2009 at 4:29 PM, Moritz Lennert > <[email protected]> wrote: > >> On 24/03/09 10:46, Paolo Cavallini wrote: >> >>> Hi all. >>> Sorry about my ignorance. I do not understand why having both db.connect >>> and db.connect.schema (the second is == to the first, with just one >>> extra option). >>> >> Where do you see a db.connect.schema ? db.connect has a schema option. >> > > I see in the QGIS source code: > > cat src/plugins/grass/modules/db.connect.qgm > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd"> > > <qgisgrassmodule label="Set general DB connection" module="db.connect"> > <option key="driver" answer="dbf" hidden="no"/> > <option key="database" > answer="$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/" hidden="no"/> > </qgisgrassmodule> > > > cat src/plugins/grass/modules/db.connect.schema.qgm > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd"> > > <qgisgrassmodule label="Set general DB connection with a schema" > module="db.connect"> > <option key="driver" answer="dbf" hidden="no"/> > <option key="database" > answer="$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/" hidden="no"/> > <option key="schema" answer=" " hidden="no"/> > </qgisgrassmodule> > > To me it looks like a replication since the schema answer isn't predefined. > > Markus > _______________________________________________ > grass-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-dev > _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
