[postgis-users] ESRI Shapes from database

Lee Keel lee.keel at uai.com
Tue Oct 16 12:18:18 PDT 2007


I am not sure if the pgpass will work or not, but won't the passwords be in
plain text there?  I was really hoping that there was a simple way to
convert a bytea to float.  Is there no simple way to do this?

 

  _____  

From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Obe,
Regina
Sent: Tuesday, October 16, 2007 1:19 PM
To: PostGIS Users Discussion
Subject: RE: [postgis-users] ESRI Shapes from database

 

Can you use a ..pgpass file?

 

http://www.postgresql.org/docs/8.2/static/libpq-pgpass.html
<http://www.postgresql.org/docs/8.2/static/libpq-pgpass.html> 

 

I haven't tried it with psql, but I think psql abides by it.

 

Hope that helps,

Regina


 

  _____  

From: postgis-users-bounces at postgis.refractions.net on behalf of Lee Keel
Sent: Tue 10/16/2007 2:02 PM
To: PostGIS Users Discussion
Subject: RE: [postgis-users] ESRI Shapes from database

> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
<mailto:postgis-users-> 
> bounces at postgis.refractions.net] On Behalf Of Chris Hermansen
> Sent: Tuesday, October 16, 2007 12:50 PM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] ESRI Shapes from database
>
> If I understand correctly, you have written a C# program to read the
> geodatabase on the SQL Server and you're trying to transform that into a
> string you can pass into PostgreSQL.  And your string is too big.
>
> Given that you've got that far, why don't you just change your C#
> program to write the data out to a text file (or several text files if
> necessary) as SQL containing a CREATE statement, a bunch of INSERT
> statements or a COPY statement (probably more efficient with such a big
> table, but if your size limitation hampers you, you could fall back to
> INSERTs or even a few COPY statements), and finally add a spatial index.
>
> If you need a template for that, grab a shape file and use shp2pgsql to
> generate a sample from which you can design your own output.
>
> Then you can use psql to process that text file (those text files ).
>
[Lee Keel]
My only reason I haven't used the file approach is that I need this to be
run nightly and I can't find a command line option to pass a password into
psql for the input of the file.  The user that I am having to use for this
account requires a password and it is an act of congress (almost literally)
to get trust accounts on this server that have just read access.  I don't
think there is anyway that they are going to let me have a trust account
with write access.  Am I missing something about the command line options
for psql?

Thanks,
-LK
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
<http://postgis.refractions.net/mailman/listinfo/postgis-users> 


  _____  

The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure pursuant to
Massachusetts law. It is intended solely for the addressee. If you received
this in error, please contact the sender and delete the material from any
computer. 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20071016/3dc25cc6/attachment.html>


More information about the postgis-users mailing list