You are here:GeoTux»Geo-Forums»Geometry_columns of a view

Statistics

Invitados: 111
Usuarios registrados: 1904
Usuarios en línea:
Registrados hoy:
-

Register

RSS

Blogs and News:
Recibe las actualizaciones en Geo-Noticias y Geo-Blogs

Get them by e-mail
Recibir Geo-Noticias y Geo-Blogs por e-mail

¿What is this about?

Welcome, Guest
Username Password: Remember me

Geometry_columns of a view
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Geometry_columns of a view

Geometry_columns of a view 20 Jul 2012 16:36 #794

  • manu_zur
  • OFFLINE
  • Aparecid@
  • Posts: 2
  • Karma: 0
Hello! I have a doubt. I created the view with geometry, with the next sql:
CREATE VIEW Z AS
SELECT a.id....., c.the_geom
FROM actgis a
JOIN Parc2009 c ON a.ref_cat = c.refcat;

I can´t include the record into the geometry columns of generated vew. Do you have some advices?
What can I do to renew geometry_columns with the information from the new view?Can I use the addgeometry_columns functions or I should modify it,because it's functiones can only be used for the table?

Re: Geometry_columns of a view 20 Jul 2012 20:27 #795

  • tuxman
  • NOW ONLINE
  • Vive aquí
  • Posts: 228
  • Karma: 2
Hi manu_zur,

since your view already contains a geometry column (the_geom) you are not able to use the function addgeometrycolumn. However, you could use the function populate_geometry_columns, this way (replace 'yourview' by your view's name):

SELECT Populate_Geometry_Columns('public.yourview'::regclass);


See [1] for further details.

By the way, you could write in Spanish if you are able to.

Tuxman
----------------
[1] postgis.org/documentation/manual-1.5/Pop...eometry_Columns.html

Re: Geometry_columns of a view 23 Jul 2012 12:37 #796

  • manu_zur
  • OFFLINE
  • Aparecid@
  • Posts: 2
  • Karma: 0
Gracias,
Efectivamente con SELECT Populate_Geometry_Columns('public.yourview'::regclass);
consigo que en la tabla geometry_columns se incluyan los parametros de la geometria de la vista creada. (tarda bastante, del orden de 4 horas, no se si esto es nomral)

Si bien el a la hora de intentar visualizar la vista geografica generada en Gvsig ma indica literamente:
error al cargar la capa: null.

Alguna idea para poder visualizar las vistas en gvsig, sin estos problemas?

Gracias.

Re: Geometry_columns of a view 23 Jul 2012 18:45 #797

  • tuxman
  • NOW ONLINE
  • Vive aquí
  • Posts: 228
  • Karma: 2
En una vieja versión que tengo instalada de gvSIG (1.11), la vista carga sin problemas. Por cierto, en QGIS también carga la vista, has probado allí?

Lo de las 4 horas lo puedes evitar si diligencias "a mano" los datos de tu vista en la tabla geometry_columns, solo hay que llenar los datos que allí se piden.

Saludos
  • Page:
  • 1
Time to create page: 0.91 seconds
 

On-line users

Random user

Latest Geo-Forums

More Topics »

Latest Comments