[postgis-users] Re: [Mapserver-users] Create View with PostGis table

Jorge Alberto Arocha Muñoz jorge_alberto@arocha.net
Wed Nov 12 13:21:50 2003


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
Bien no parece que sea un error de postgis porque el da un mensaje de
error mostrando la sentencia SQL que lo ha causado, aun as=ED yo he
trabajado con vistas complejas y lo que hago es lo que Usted ya hizo,
pero teniendo en cuenta el oid de la tabla que tiene las posiciones, es
decir:

1. Crear la vista:

test=3D> CREATE VIEW only_pg_view AS SELECT t0.oid, t0.* FROM
landusea_region t0;

2. Insertar el registro en la tabla geometry columns:

test only_pg_view the_geom 2 -1 MULTIPOLYGON 17464 7

3. Debe quedar Ok, solo se me ocurre una cosa adicional observo que esta
trabajando con Postgis 0.5, la cual yo nunca he trabajado, sugeriria
utilizara Postgis 0.7.x

Cualquier cosa ala orden.



From: opengis
Sent: 12/11/2004 2:56:55 AM
To:=20
Cc: mapserver-users@lists.gis.umn.edu
Subject: Re: [Mapserver-users] Create View with PostGis table=20


> Maybe the line:
>=20
> DATA "the_geom from only_pg_land_use"
>=20
> Must be:
>=20
> DATA "the_geom from only_pg_view"
>=20
> No?
Thanks but it is only a cut & past mistake, the problem is always data
type
(geometry) lose in CREATE VIEW

I saw you demo site: interesting




_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
.



---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/postgis-users/attachments/20031112/ebb3508a/attachment.htm

---------------------- multipart/alternative attachment--