Hi,<div>you just need to populate the table "geometry_columns" in the public schema.</div><div><br></div><div>Example:</div><div><span class="Apple-style-span" style="border-collapse: collapse; ">INSERT INTO <span style="font-family: Georgia; line-height: 15px; "> <span class="nfakPe" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 136); background-position: initial initial; ">geometry_columns</span> values('','public','your_table','the_geom',2,your_srid,'your_geometry')</span></span><br>
</div><div><br></div><div>Fred</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 12:00 PM, stetou <span dir="ltr"><<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi,<br>
I have apostgis table that I can load in qgis but I can't with gvSig. In<br>
gvSig the Geometry field list box is empty so I can not complete the GeoBD<br>
wizard.<br>
I tried with other tables and it works. Maybe the way I created this table<br>
is not correct. Here is what I did:<br>
in the sql below ad2001 is a table with a geometry field visible in gvSig<br>
defavorisation2001 is a table without geometry<br>
I made a join from these 2 tables. Do you something wrong in the creation of<br>
this new table?<br>
thanks,<br>
steve<br>
<br>
select distinct a.gid, a.the_geom, b."ADIDU", b."QUINTMAT", b."QUINTSOC"<br>
into lim_admin.IndiceDefavorisation<br>
from lim_admin.ad2001 as a, lim_admin. defavorisation2001 as b<br>
where a."dauid" = b."ADIDU";<br>
<br>
alter table lim_admin.IndiceDefavorisation<br>
 add CONSTRAINT IndiceDefavorisation_pkey PRIMARY KEY (gid),<br>
 --add column idUnique serial PRIMARY KEY,<br>
 add CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2),<br>
 add CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) =<br>
'MULTIPOLYGON'::text OR the_geom IS NULL),<br>
 add CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 4326);<br>
<br>
CREATE INDEX IndiceDefavorisation_the_geom_gist<br>
  ON lim_admin.IndiceDefavorisation<br>
  USING gist<br>
  (the_geom);<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/geometry-field-doesn%27t-show-up-in-gvSig-tp20264514p20264514.html" target="_blank">http://www.nabble.com/geometry-field-doesn%27t-show-up-in-gvSig-tp20264514p20264514.html</a><br>

Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</font></blockquote></div><br></div>