Skip to content
Permalink
Browse files

Added an option to v.out.ogr.pg - thanks Giovanni Manghi

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12633 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
pcav
pcav committed Dec 28, 2009
1 parent bf61b41 commit 0218f447d602e4ed25107992df85cd7e4b240472
Showing with 3 additions and 2 deletions.
  1. +1 −0 src/plugins/grass/modules-6.4/v.out.ogr.pg.qgm
  2. +2 −2 src/plugins/grass/scripts/v.out.ogr.pg.py
@@ -10,4 +10,5 @@
<option key="port" answer="5432"/>
<option key="user"/>
<option key="password"/>
<flag key="c" answer="off" hidden="no"/>
</qgisgrassmodule>
@@ -137,8 +137,8 @@ def main():
if user: dsn += " user=" + user
if password: dsn += " password=" + password

if grass.run_command('v.out.ogr', input=input, layer=layer, type=type, format="PostgreSQL", dsn=dsn, olayer=olayer ) != 0:
grass.fatal("Cannot export vector to database.")
if grass.run_command('v.out.ogr', flags=flags_string, input=input, layer=layer, type=type, format="PostgreSQL", dsn=dsn, olayer=olayer ) != 0:
grass.fatal("Cannot export vector to database.")

if __name__ == "__main__":
options, flags = grass.parser()

0 comments on commit 0218f44

Please sign in to comment.
You can’t perform that action at this time.