<HTML dir=ltr><HEAD><TITLE>RE: [postgis-users] ESRI Shapes from database</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText94475 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Brent,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I know that SharpMap.NET piggy backs on GDAL for its support of OGR datasources such as MapInfo etc so I think the compiled bindings ready to use for .NET 2.0 is available as part of that project.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Not quite sure how that would help Lee though.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2><A href="http://www.codeplex.com/SharpMap/Wiki/View.aspx?title=Extensions&referringTitle=Home">http://www.codeplex.com/SharpMap/Wiki/View.aspx?title=Extensions&referringTitle=Home</A></FONT></DIV></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Hope that helps,</DIV>
<DIV dir=ltr>Regina<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> postgis-users-bounces@postgis.refractions.net on behalf of Brent Wood<BR><B>Sent:</B> Fri 10/19/2007 5:20 PM<BR><B>To:</B> PostGIS Users Discussion; lee.keel@uai.com<BR><B>Subject:</B> RE: [postgis-users] ESRI Shapes from database<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>--- Lee Keel <lee.keel@uai.com> wrote:<BR><BR>> > Steffen,<BR>><BR>> Thanks for the reply, but I am not sure how to call COPY using STDIN.  Do<BR>> you have an example?  I really don't see how to call COPY using STDIN if I<BR>> am using an npgsqlcommand object in .NET.  So I am guessing there is no<BR>> specific permission that I can grant that will allow this?  Bummer.<BR>><BR><BR><BR>Hi Lee,<BR><BR>>From the command line, you could use:<BR><BR>cat <file> | psql -d <db> -c "copy <table> from STDIN;"<BR><BR>How this can be invoked in .net I have no idea.... but there si an example :-)<BR><BR>If the user who makes the connection is a postgres superuser, you should be<BR>able to copy to/from files directly.<BR><BR>Another option, are there any .net bindings for GDAL/OGR?<BR><BR><BR>Cheers,<BR><BR>   Brent Wood<BR><BR>_______________________________________________<BR>postgis-users mailing list<BR>postgis-users@postgis.refractions.net<BR><A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</A><BR></FONT></P></DIV></BODY></HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
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.
</STRONG></P></BODY></HTML>