<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">You can use the command line like follows:</font>
<br>
<br><font size=2 face="sans-serif">pgsql2shp -u postgres -g the_geom -P
password -f test testgis "</font><font size=2><tt>select * from LT
where name = XXX</tt></font><font size=2 face="sans-serif">"</font>
<br>
<br><font size=2 face="sans-serif">where </font>
<br><font size=2 face="sans-serif">u: user name</font>
<br><font size=2 face="sans-serif">P:password</font>
<br><font size=2 face="sans-serif">g: geometry column field name.</font>
<br><font size=2 face="sans-serif">f: shapefile name</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Maher</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>zourite@cegetel.net</b></font>
<br><font size=1 face="sans-serif">Sent by: postgis-users-bounces@postgis.refractions.net</font>
<p><font size=1 face="sans-serif">10/25/2005 05:28 PM</font>
<br><font size=1 face="sans-serif">Please respond to PostGIS Users Discussion</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
postgis-users@postgis.refractions.net</font>
<br><font size=1 face="sans-serif"> cc:
</font>
<br><font size=1 face="sans-serif"> Subject:
[postgis-users] help command pgsql2shp</font></table>
<br>
<br><font size=2><tt>Hello<br>
Is anyone can give me an example of pgsql2shp command with sql query in<br>
option. Is there a documentation of this function (may be i could write<br>
it).<br>
I'm looking for something like this :<br>
pgsql2shp -f c:\test.shp testgis 'select * from LT where name = XXX' but<br>
it doesn't work !<br>
<br>
Thanks<br>
<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
postgis-users@postgis.refractions.net<br>
http://postgis.refractions.net/mailman/listinfo/postgis-users<br>
</tt></font>
<br>