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 1D3E39DC81D for ; Thu, 23 Feb 2006 17:55:07 -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 79909-02 for ; Thu, 23 Feb 2006 17:55:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id B4EDB9DC801 for ; Thu, 23 Feb 2006 17:55:03 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k1NLsmc7069766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Feb 2006 14:54:51 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k1NLsms0054299; Thu, 23 Feb 2006 14:54:48 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k1NLsmmm054298; Thu, 23 Feb 2006 14:54:48 -0700 (MST) (envelope-from mfuhr) Date: Thu, 23 Feb 2006 14:54:48 -0700 From: Michael Fuhr To: Sunanda Kumaraguru Cc: pgsql-admin@postgresql.org, Ashok Samal Subject: Re: ERROR: Cannot determine geometry type (empty table). Message-ID: <20060223215448.GA54165@winnie.fuhr.org> References: <67e0ca070602231148l17f4dcf8n3980fa69a936e2f4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67e0ca070602231148l17f4dcf8n3980fa69a936e2f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.122] X-Spam-Score: 0.122 X-Spam-Level: X-Archive-Number: 200602/296 X-Sequence-Number: 20717 On Thu, Feb 23, 2006 at 01:48:54PM -0600, Sunanda Kumaraguru wrote: > Iam trying to use the postgis dumper.I get the follwing error. > > ERROR: Cannot determine geometry type (empty table). What exactly did you do to get this error? Are you trying to use pgsql2shp? After loading your data it worked fine for me: % pgsql2shp postgis feb3 Initializing... Done (postgis major version: 1). Output shape: Polygon Dumping: XX [3 rows]. % ls -l total 10 -rw------- 1 mfuhr mfuhr 223 Feb 23 14:49 feb3.dbf -rw------- 1 mfuhr mfuhr 5612 Feb 23 14:49 feb3.shp -rw------- 1 mfuhr mfuhr 124 Feb 23 14:49 feb3.shx However, if I empty the table then I get the same error you got: % psql -d postgis -c 'delete from feb3' DELETE 3 % pgsql2shp postgis feb3 Initializing... ERROR: Cannot determine geometry type (empty table). I'd guess you're trying to dump an empty table. If that doesn't help then try asking on the postgis-users mailing list. http://postgis.refractions.net/mailman/listinfo/postgis-users -- Michael Fuhr