<div dir="ltr"><div><div><div><div><div>converting to spatialite may be a bad idea, because it won't work in all cases (spatialite has less features than postgres/postgis).<br></div><div>(Im' thinking mat view, triggers, custom function, etc.)<br></div><div><br></div>The equivalent way, that is also the simplest, is to dump the tables (and related functions/triggers if necessary) into a file, then restore the table in the target postgis database!<br></div><br>For this you simply use the <a href="http://www.postgresql.org/docs/current/static/app-pgdump.html">"pg_dump"</a> utility.<br></div>You have a graphical interface available in pgadmin.<br><br></div><div>This will create a flat text sql file (or compressed binary, depending on the option).<br></div><div>You send this file via USB key or ftp or whatever, then <br></div><div><br></div>the person getting the dump file simply use<br></div><div>"<a href="http://www.postgresql.org/docs/current/static/app-pgrestore.html">pg_restore</a>" on the file<br><br></div><div>If you have few geom and all can be represented by shapefile, you have a <a href="http://plugins.qgis.org/plugins/qconsolidate/">great plugin</a> that for all the layers of your project create a shapefile, so that everything is easy to send.<br></div><div><br></div><div>Cheers,<br></div>Rémi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-05 7:29 GMT+01:00 Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com" target="_blank">tech_dev@wildintellect.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 03/04/2015 09:20 PM, Leahy, Thomas A. wrote:<br>
> Hello,<br>
><br>
>    If I just use shape and raster files it is fairly easy for me to give someone all my QGIS work on a USB stick as it uses relative directory references as long as everything is below the Project Directory they can use it as I did. However if I decide to use PostGIS is there an easy way to similarly transfer the work that was done to another person?<br>
><br>
>     Thanks for your assistance,<br>
>     Tom Leahy<br>
<br>
</div></div>Convert the Postgis db to Spatialite. There are several tools out there<br>
for this, ogr2ogr would work, as would a couple of QGIS Plugins (offline<br>
editor can clone your postgis to local), the spatialite author even made<br>
some tool I can't recall the name right now.<br>
<br>
Eventually this will be the role of the new GeoPackage format that will<br>
bundle vector and raster into a sqlite db.<br>
<br>
Thanks,<br>
Alex<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>