Re: How to get geometry enabled Tables form Postgresql/postgis

From: venkat <ven(dot)tammineni(at)gmail(dot)com>
To: Lee Hachadoorian <lee(dot)hachadoorian(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to get geometry enabled Tables form Postgresql/postgis
Date: 2010-07-30 04:27:26
Message-ID: AANLkTi=1ANqeNPdyxt8=7gw-5VgwB=fr4Avd+F2pO63F@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Dear Lee,

Perfect ....Its working fine.... Thanks alot..

Thanks and Regards,

Venkat

On Fri, Jul 30, 2010 at 1:43 AM, Lee Hachadoorian <
lee(dot)hachadoorian(at)gmail(dot)com> wrote:

> All geometric columns in all spatially enabled tables appear in the table
> public.geometry_columns, defined as:
>
> CREATE TABLE public.geometry_columns
>
> (
>
> f_table_catalog character varying(256) NOT NULL,
>
> f_table_schema character varying(256) NOT NULL,
>
> f_table_name character varying(256) NOT NULL,
>
> f_geometry_column character varying(256) NOT NULL,
>
> coord_dimension integer NOT NULL,
>
> srid integer NOT NULL,
>
> "type" character varying(30) NOT NULL,
>
> CONSTRAINT geometry_columns_pk PRIMARY KEY (f_table_catalog, f_table_schema, f_table_name, f_geometry_column)
>
> )
>
> WITH (
>
> OIDS=TRUE
>
> );
>
>
> For tables only, a simple
>
> SELECT DISTINCT f_table_schema, f_table_name FROM geometry_columns;
>
> should do the trick.
>
> --Lee
>
>
> On 07/29/2010 08:58 AM, venkat wrote:
>
> Dear All,
>
>
> How can i retrieve only spatial enabled tables form the
> database(Postgresql/PostGIS).Please let me know.
>
> I am waiting for your great response.
>
> Thanks and Regards,
>
> Venkat
>
>
> --
> Lee Hachadoorian
> PhD Student, Geography
> Program in Earth & Environmental Sciences
> CUNY Graduate Center
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2010-07-30 06:11:29 Re: How to improve: performance of query on postgresql 8.3 takes days
Previous Message Sandeep Srinivasa 2010-07-30 03:56:36 Re: Which CMS/Ecommerce/Shopping cart ?

Browse pgsql-sql by date

  From Date Subject
Next Message Rainer Stengele 2010-07-30 09:35:50 Re: grouping subsets
Previous Message Lee Hachadoorian 2010-07-29 20:13:44 Re: How to get geometry enabled Tables form Postgresql/postgis