Unix Technical Forum

Re: Export to shape file

This is a discussion on Re: Export to shape file within the Pgsql General forums, part of the PostgreSQL category; --> On Tue, Jan 09, 2007 at 10:39:05PM -0800, kmohan wrote: > > Hi, > > I am trying to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 01:18 PM
Martijn van Oosterhout
 
Posts: n/a
Default Re: Export to shape file

On Tue, Jan 09, 2007 at 10:39:05PM -0800, kmohan wrote:
>
> Hi,
>
> I am trying to export my spatial data from postgres to shae using pgsql2shp
> command.
> When i keyed in the syntax pgsql2shp -f pl dcmms plss
> It is showing fe_sendauth: no password supplied
> Please can some one help me on how to import it to shape file.


I can't find any docs on that program quickly, but it's evidently
looking for a password. You could:

- Find a way to give it the password or
- Setup your system so it does not need a password.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFpV4SIB7bNG8LQkwRAuNNAJ9Ykuw1tQ2976UYfiQHGw 6yn6N9JACfbEbc
451p8nUZ/3wScYcxKi5Bcc4=
=meUB
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 01:22 PM
Michael Fuhr
 
Posts: n/a
Default Re: Export to shape file

On Wed, Jan 10, 2007 at 10:43:46PM +0100, Martijn van Oosterhout wrote:
> On Tue, Jan 09, 2007 at 10:39:05PM -0800, kmohan wrote:
> > I am trying to export my spatial data from postgres to shae using pgsql2shp
> > command.
> > When i keyed in the syntax pgsql2shp -f pl dcmms plss
> > It is showing fe_sendauth: no password supplied
> > Please can some one help me on how to import it to shape file.

>
> I can't find any docs on that program quickly, but it's evidently
> looking for a password. You could:


pgsql2shp is part of PostGIS. Running pgsql2shp with no arguments
gives a help message; see also "Using the Dumper" in the PostGIS
documentation.

http://postgis.refractions.net/docs/ch04.html

> - Find a way to give it the password or


You can use the -P option for this, although providing a password
on the command line has security implications and should usually
be avoided.

pgsql2shp -P yourpassword -f pl dcmms plss

> - Setup your system so it does not need a password.


See the "Client Authentication" and "libpq - C Library" chapters
in the PostgreSQL documentation to learn more about authentication
(adjust the following links for whatever version of PostgreSQL
you're running).

http://www.postgresql.org/docs/8.2/i...ntication.html
http://www.postgresql.org/docs/8.2/i...ive/libpq.html

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com