X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 11E279DC819 for ; Thu, 23 Feb 2006 17:21:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74905-01 for ; Thu, 23 Feb 2006 17:21:26 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id D58959DC801 for ; Thu, 23 Feb 2006 17:21:22 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id E04A956423; Thu, 23 Feb 2006 15:21:38 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Thu, 23 Feb 2006 15:21:38 -0600 Date: Thu, 23 Feb 2006 15:21:38 -0600 From: "Jim C. Nasby" To: Yantao Shi Cc: pgsql-admin@postgresql.org Subject: Re: how to use PostGIS with Postgres Message-ID: <20060223212138.GA86022@pervasive.com> References: <43FE04CE.5090502@larcb.ecs.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43FE04CE.5090502@larcb.ecs.nasa.gov> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060223:y.shi@larc.nasa.gov::uCiqMmkm2V/QRNSd:000000000000000000 0000000000000000000000000eba X-Hashcash: 1:20:060223:pgsql-admin@postgresql.org::NfWFHabtiwoBBkUH:00000000000 0000000000000000000000001IJf X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.104 required=5 tests=[AWL=0.104] X-Spam-Score: 0.104 X-Spam-Level: X-Archive-Number: 200602/290 X-Sequence-Number: 20711 On Thu, Feb 23, 2006 at 01:54:06PM -0500, Yantao Shi wrote: > We have PostGIS 1.1.1 installed and I am trying to get it to work with > Postgres8.1.1 on our system. > > Could some one give me a small sample script that lets me connect to > postgis from Postgres? > > I have never used postgis before. I need to test its geo-spatial > functionality with Postgres. PostGIS is just a set of extensions on top of PostgreSQL. As long as you don't create any namespace collisions, you can use a PostGIS database exactly the same as if it was just a PostgreSQL database (which of course it is). -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461