[GRASS-dev] db.connect
Markus Neteler
neteler at osgeo.org
Wed Mar 25 16:25:24 EDT 2009
On Wed, Mar 25, 2009 at 4:29 PM, Moritz Lennert
<mlennert at 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
More information about the grass-dev
mailing list