https://issues.qgis.org/https://issues.qgis.org/favicon.ico2008-11-08T07:32:21ZQGIS Issue TrackingQGIS Application - Bug report #1190: GRASS modules: v.out.ogr wrong for PostGIShttps://issues.qgis.org/issues/1190?journal_id=172612008-11-08T07:32:21ZMarkus Neteler
<ul></ul><p>The problem is not clear to me, on cmd line one has to enter:</p>
<pre>
v.out.ogr input=polygons type=area \\
dsn="PG:host=localhost dbname=postgis user=postgres" \\
olayer=polymap format=PostgreSQL
</pre>
<p>Is it impossible to define dsn like that or just annoying? If the latter, could different fields be defined and composed on the fly to one dsn string?</p> QGIS Application - Bug report #1190: GRASS modules: v.out.ogr wrong for PostGIShttps://issues.qgis.org/issues/1190?journal_id=172622009-06-09T23:47:25ZRedmine Admin
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in revision 10899. Added new script + qgis module with separate fields for each db connection parameter.</p>
<p>Work sponsored by <a class="external" href="http://www.faunalia.it">http://www.faunalia.it</a></p>
<p>Radim</p> QGIS Application - Bug report #1190: GRASS modules: v.out.ogr wrong for PostGIShttps://issues.qgis.org/issues/1190?journal_id=172632009-06-15T14:31:51Zcgsbob -
<ul></ul><p>Replying to [comment:2 rblazek]:</p>
<blockquote>
<p>Fixed in revision 10899. Added new script + qgis module with separate fields for each db connection parameter.</p>
<p>Work sponsored by <a class="external" href="http://www.faunalia.it">http://www.faunalia.it</a></p>
<p>Radim</p>
</blockquote>
<p>I just tried those two scripts using QGIS 1.2 w/ GRASS 6.5.svn. I get a error message:<br /><pre>
Traceback (most recent call last):
File "/home/bobm/usr/share/qgis/grass/scripts/qgis.v.out.ogr.pg2.py", line 137, in <module>
options, flags = grass.parser()
[[AttributeError]]: 'module' object has no attribute 'parser'
</pre></p>
<p>I did a little check and found that this errors is related to a reorganization of grass.py (see [<a class="external" href="http://trac.osgeo.org/grass/changeset/37447]">http://trac.osgeo.org/grass/changeset/37447]</a>). I'm attaching a patch that seems to fix this problem.</p>
<p>Btw, I wasn't sure if I should reopen this ticket or submit a new one?</p> QGIS Application - Bug report #1190: GRASS modules: v.out.ogr wrong for PostGIShttps://issues.qgis.org/issues/1190?journal_id=172642009-06-15T21:42:03ZRedmine Admin
<ul></ul><p>I have commited you patch in revision 10936. <br />Non need to open a new ticket I believe.<br />Thanks.</p>
<p>Radim</p>