Re: ERROR: Cannot determine geometry type (empty table).

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Sunanda Kumaraguru <sunanda(dot)kumaraguru(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, Ashok Samal <samal(at)cse(dot)unl(dot)edu>
Subject: Re: ERROR: Cannot determine geometry type (empty table).
Date: 2006-02-23 22:07:59
Message-ID: 20060223220759.GA54436@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Feb 23, 2006 at 02:54:48PM -0700, Michael Fuhr wrote:
> I'd guess you're trying to dump an empty table.

Or maybe you're issuing a query that returns no rows.

% psql -d postgis -c 'select max(gid) from feb3'
max
-----
2
(1 row)

% pgsql2shp postgis 'select * from feb3 where gid > 2'
Preparing table for user query... Done.
Initializing... ERROR: Cannot determine geometry type (empty table).

--
Michael Fuhr

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Shellam 2006-02-23 23:08:52 Re: PGPASSWORD
Previous Message Michael Fuhr 2006-02-23 21:54:48 Re: ERROR: Cannot determine geometry type (empty table).