[postgis-users] change column type in view
dale.rudrum at gmail.com
Wed Aug 29 06:54:30 PDT 2012
To have an easy and quick acces to the various projects we have had over
the years I would like to have a table with in it polygons representing the
areas in which work was done. It seems to me that a view would be easiest
as this is updated automatically. I came up with this script:
CREATE OR REPLACE VIEW project_overview AS
SELECT geometry_columns.f_table_name AS table,
geometry_columns.f_geometry_column AS geometrycol,
geometry_columns.f_geometry_column) AS extent
WHERE geometry_columns.f_table_name::text <> 'project_overview';
which works fine, save that the type of the column extent is not geometry.
Therefore autocad and quantum GIS cannot acces the information
Is there a way to change this in the definition of the view, or to bypass
the problem by using a second view? As a newby I'm stuck at this point.
Also suggestions for different setups solving my problem would be
appreciated. Because of our use of autocad we are restricted to PostGIS 1.5
on postgres 9.0.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the postgis-users