<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    hi georg,<br>
    <br>
    this is no postgis-specific question. You connect from python as
    connecting to any postgresql-DB. You just have a bunch of
    postgis-functions available on SQl-side<br>
    <br>
    Marco<br>
    <br>
    P.S. if you are familiar with python you also could write new
    functions in postgreSQL using plpythonu as processing language
    within postgis/postgreSQL<br>
    <br>
    Am 15.04.2011 11:17, schrieb George Washington:
    <blockquote cite="mid:COL116-W52CBE45DED7CD364CFA33694AC0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      Hi, I am new to postgis (1.5 under Win 7) but have read enough to
      feel hopeful that it could be just what I need. I have a very
      large number of shape files which I have loaded in my first
      postgis database generating some hundreds of tables with vector
      data. So far so good, but now I need to use it to create queries
      and extract information in batch using Python. I have seen
      statements by people who used Python to access postgis databases
      but I have not been able to find any coded examples which show :<br>
      1) how to connect to the database<br>
      2) how to perform queries on the data<br>
      3) how to extract the results from the queries, etc...<br>
      <br>
      (all of which can be done in Python easily with MySql )<br>
      <br>
      Can you please point me to any document which gives examples or
      code fragments to do the above.<br>
      Many thanks,<br>
      George<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>