<div dir="ltr">Exactly Richard, that would be the expected behaviour.<div><br></div><div style>Regards, </div><div style><br></div><div style>Germán </div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-10 4:37 GMT-05:00 Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10-12-14 10:11, Uggla Henrik wrote:<br>
> In Linux it is very easy to setup a ramdisk for fast temporal file storage.<br>
><br>
> --help really gives the impression that loading Qgis with PostGIS layers using the FILE parameter is a breeze. Also, I still doesn't get what this "PostGIS extension" mentioned in --help is.<br>
<br>
</span>cc'ing to dev list, original thread here:<br>
<br>
<a href="http://lists.osgeo.org/pipermail/qgis-user/2014-December/030180.html" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/2014-December/030180.html</a><br>
<br>
<br>
Me neither, best to bring this to the dev list then, to ask which this<br>
extension is.<br>
<br>
And IF we want a FILE parameter work for postgis we could come up with a<br>
design for that file param and do a feature request to get this implemented?<br>
<br>
For example, as this works:<br>
<br>
l = iface.addVectorLayer('dbname=bag host=localhost port=5432 user=geo<br>
<span class="">password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992<br>
</span><span class="">type=MULTIPOLYGON table="bag8mrt2014"."provincie" (geovlak) sql=',<br>
"test", "postgres")<br>
<br>
</span>this is the actual uri:<br>
<span class=""><br>
'dbname=bag host=localhost port=5432 user=geo<br>
password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992<br>
type=MULTIPOLYGON table="bag8mrt2014"."provincie" (geovlak) sql='<br>
<br>
</span>so maybe prepend that with the provider part:<br>
<br>
postgres:'dbname=bag host=localhost port=5432 user=geo<br>
<span class="">password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992<br>
type=MULTIPOLYGON table="bag8mrt2014"."provincie" (geovlak) sql='<br>
<br>
</span>and add a --uri option to QGIS?<br>
<br>
qgis --uri postgres:'dbname=bag host=localhost port=5432 user=geo<br>
<span class="">password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992<br>
type=MULTIPOLYGON table="bag8mrt2014"."provincie" (geovlak) sql='<br>
<br>
</span>or something like that?<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-----------<br>   |\__  <br>(:>__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2">http://twitter.com/GeoTux2</a><br></div>
</div>