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).
Could the first command be removed, for the sake of simplicity, assuming
"public" as a default?
All the best.
--
Paolo Cavallini: http://www.faunalia.it/pc
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.
Moritz
may be he is using the GRASS Toolbox in QGIS:
some GRASS modules are divided in multiple "modules" with different
fixed default values using the GRASS toolbox available through QGIS. So
is db.connect
Marco
Moritz Lennert schrieb:
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.
Moritz
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
On Wed, Mar 25, 2009 at 4:29 PM, Moritz Lennert
<mlennert@club.worldonline.be> 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
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
<mlennert@club.worldonline.be> 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
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
Marco Lechner - FOSSGIS e.V. ha scritto:
I guess the db.connect Version of QGIS is just for not "bothering"
normal users who don't know about schemas
Ok Marco, I think you're right, so I'll leave it as such.
There is still some trouble with other grass db modules in qgis however,
see https://trac.osgeo.org/qgis/ticket/1173
Help welcome.
--
Paolo Cavallini: http://faunalia.it/pc