<div class="gmail_quote" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><div><div class="im" style="color: rgb(80, 0, 80); "><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div>IIRC, geography_columns is a view, not sure why you would even want to access that...<br><br>I don&#39;t have time right now to try to find out where the error message comes from. Can you give us the exact v.in.ogr command you use ?</div>

</blockquote></div><div>Gotcha. I think it is a table, actually:</div></div></div><blockquote style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

<div class="gmail_quote"><div><div><div>test=# \dt</div><div>             List of relations</div><div> Schema |       Name       | Type  | Owner </div><div>--------+------------------+-------+-------</div><div> public | geometry_columns | table | lee</div>

<div> public | spatial_ref_sys  | table | lee</div><div>(2 rows)</div></div></div></div></blockquote><div class="gmail_quote" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">

<div><div>This is my test DB that I&#39;m using to kind of experiment and those are the two tables that were produced as I was setting up the PostGIS DB.</div><div>Nonetheless, I don&#39;t necessarily want to access those tables, I just want to upload my vectors. This is the v.out.ogr command I used:</div>

<div><div style="background-color: transparent; "><span style="font-size: 15px; font-family: Arial; background-color: transparent; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; ">v.out.ogr in=Gebaeude_Globalstrahlung dsn=’PG:host=localhost dbname=test user=lee password=XXX type=area format=PostgreSQL’</span></div>

</div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div> </div></blockquote></div><div class="im" style="color: rgb(80, 0, 80); "><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div bgcolor="#FFFFFF" text="#000000" style="direction: ltr; ">Could it be that you&#39;re confusing two things: <br>1- Configure GRASS to use a PostgreSQL database for attribute data<br>vs<br>2- Move your vector layers out to a PostGIS spatial database<br>

<br>These are not the same. If you want to export a GRASS layer out to a PostGIS DB then v.out.ogr is the right module.<br>If, on the other hand, you want to keep your data as GRASS vectors, but move the *attributes* to PostgreSQL then do:<br>

(straight from the man page...)<br>    db.connect driver=pg database=&quot;host=<a href="http://myserver.itc.it/" target="_blank" style="color: rgb(17, 85, 204); ">myserver.itc.it</a>,dbname=mydb&quot;<br>    db.login user=myname [pass=secret]<br>

    db.connect -p<br>This will set your default database connection to PostgreSQL, instead of dbf. Now you should copy your vectors to a new name in the mapset, and let GRASS make the Postgresql attribute tables.<br>g.copy &lt;vector1&gt;,&lt;newvector1&gt;<br>

The new copies will still be GRASS vectors, but with their attribs in PostgreSQL database.</div></blockquote></div><div>Okay, I hadn&#39;t understood the difference so well, but I think I get it a little bit more. The table join would also work in PostgreSQL, that&#39;s true, although I would rather have the data as PostGIS vectors. The reason I&#39;d like PostGIS vectors is because I want to show them with a Geoserver that accesses PostGIS layers.</div>

<div class="im" style="color: rgb(80, 0, 80); "><div> </div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div bgcolor="#FFFFFF" text="#000000" style="direction: ltr; "><div><br><br><br><blockquote type="cite"><div>ERROR 1: ERROR: permission denied for relation geography_columns<br><br></div></blockquote><br></div>This is a permissions prob within PostGIS... You need to GRANT ALL ON geography_columns TO &lt;username&gt;;</div>

</blockquote></div><div>Just tried it. As my username (lee) I got:</div><div><div>test=&gt; GRANT ALL ON geography_columns TO lee;</div><div class="im" style="color: rgb(80, 0, 80); "><div>ERROR:  permission denied for relation geography_columns</div>

</div></div><div><br></div><div>I tried it again then as postgres:</div><div><div>test=# GRANT ALL ON geography_columns TO lee;</div><div>GRANT</div></div><div><br></div><div>Looked all right, but GRASS still gives me the same error that I don&#39;t have permission for the relation geography_columns.</div>

<div><br></div></div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Any ideas? I also considered exporting everything as a shapefile and then using shp2pgsql to import everything, but that&#39;s not a great solutions... And plus, shapefiles have a restricted size, which could make things difficult with large datasets (some of the data I work with is very large).</span><br style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">

<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">

Thanks a lot for the help, I really appreciate it!</div><div class="yj6qo ajU" style="cursor: pointer; outline-style: none; outline-width: initial; outline-color: initial; padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; width: 22px; margin-top: 2px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">

<span class="Apple-style-span" style="line-height: 6px;"><br></span></div><span class="HOEnZb adL" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><font color="#888888"><div>

Daniel</div></font></span>