From: Adrian Klaver <adrian.klaver@aklaver.com>
To: sunpeng <bluevaley@gmail.com>
To: PostgreSQL general <pgsql-general@postgresql.org>
Subject: Re: how to execute pgsql2shp exe in sql
Date: Sun, 14 Jul 2019 21:14:48 -0700
Message-ID: <da75db8c-8626-e23e-06f7-ac773981219f@aklaver.com> (raw)
In-Reply-To: <CAOYKhLqUPJv2Z-Bo-sfc2=7Pd+DUaKiBoFUvSPdZz1ZNYudH6w@mail.gmail.com>
References: <CAOYKhLqUPJv2Z-Bo-sfc2=7Pd+DUaKiBoFUvSPdZz1ZNYudH6w@mail.gmail.com>
On 7/14/19 8:54 PM, sunpeng wrote:
> Could I use the following in psql or in a sql :
> "D:\PostgreSQL\9.6\bin\pgsql2shp ...."
It's a command line program. See the docs:
https://postgis.net/docs/using_postgis_dbmanagement.html
4.5.2. Using the Dumper
The pgsql2shp table dumper connects directly to the database and
converts a table (possibly defined by a query) into a shape file. The
basic syntax is:
...
>
> thanks
> peng
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, bluevaley@gmail.com
Subject: Re: how to execute pgsql2shp exe in sql
In-Reply-To: <da75db8c-8626-e23e-06f7-ac773981219f@aklaver.com>
References: <CAOYKhLqUPJv2Z-Bo-sfc2=7Pd+DUaKiBoFUvSPdZz1ZNYudH6w@mail.gmail.com> <da75db8c-8626-e23e-06f7-ac773981219f@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox