v.db.select tells you that you haven't an associated db tabel... Maybe something wrong while creating your elev_contoru_3m layer?<br><br>Giovanni<br><br><div><span class="gmail_quote">2007/12/21, Matthew Pulis <<a href="mailto:mpulis@gmail.com">
mpulis@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span lang="EN-GB">Hi,</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">I am trying to export a contour layer to
PostGIS / Shapefile / GML but to no avail. The files I am trying to export are
in GRASS Vector format, thus I am using v.out.ogr. I am using the dataset found
with the Grass Book Edition 3 (North Carolina). My layer is elev_contour_3m. I
tried also to load the 10m contour layer in the same dataset but got the same
results, so I do not think it is a problem of the vector files, but more of an
exporting problem.</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">Any help how I can make this layer into a
useable layer outside GRASS is extremely appreciated!</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">I am taking this email to wish everyone on
the list best wishes for Christmas and New Year to you and your families :)</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">Matthew</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">I am supplying some info which might help
you give me some tips how I can do it.</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">GRASS 6.3.0RC1
(thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > v.out.ascii
elev_contour_3m format=standard | head -n 20</span></p>
<p><span lang="EN-GB">ORGANIZATION: NC OneMap</span></p>
<p><span lang="EN-GB">DIGIT DATE:</span></p>
<p><span lang="EN-GB">DIGIT NAME: helena</span></p>
<p><span lang="EN-GB">MAP NAME:</span></p>
<p><span lang="EN-GB">MAP DATE: Fri
Mar 9 12:12:48 2007</span></p>
<p><span lang="EN-GB">MAP SCALE: 1</span></p>
<p><span lang="EN-GB">OTHER INFO:</span></p>
<p><span lang="EN-GB">ZONE:
0</span></p>
<p><span lang="EN-GB">MAP THRESH: 0.000000</span></p>
<p><span lang="EN-GB">VERTI:</span></p>
<p><span lang="EN-GB">L 309 1</span></p>
<p><span lang="EN-GB"> 644845.39132067
228495 58</span></p>
<p><span lang="EN-GB"> 644850.5257363
228485 58</span></p>
<p><span lang="EN-GB"> 644855
228476.80568172 58</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m
> v.db.select elev_contour_3m</span></p>
<p><span lang="EN-GB">DBMI-DBF driver error:</span></p>
<p><span lang="EN-GB">Table 'elev_contour_3m' doesn't exist.</span></p>
<p><span lang="EN-GB">Error in db_open_select_cursor()</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">GRASS 6.3.0RC1
(thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > <a href="http://v.info" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">v.info</a>
elev_contour_3m</span></p>
<p><span lang="EN-GB">+----------------------------------------------------------------------------+</span></p>
<p><span lang="EN-GB"> |
Layer:
elev_contour_3m
|</span></p>
<p><span lang="EN-GB"> |
Mapset:
yancho
|</span></p>
<p><span lang="EN-GB"> | Location:
thesis
|</span></p>
<p><span lang="EN-GB"> |
Database:
/home/yancho/thesis_gis
|</span></p>
<p><span lang="EN-GB"> |
Title:
|</span></p>
<p><span lang="EN-GB"> | Map
scale:
1:1
|</span></p>
<p><span lang="EN-GB"> | Map
format:
native
|</span></p>
<p><span lang="EN-GB"> | Name of creator:
helena
|</span></p>
<p><span lang="EN-GB"> | Organization: NC
OneMap
|</span></p>
<p><span lang="EN-GB"> | Source
date: Fri Mar 9 12:12:48 2007 </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">| Number of
lines:
3355 Number
of islands:
0 |</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">And these are the output formats I tried :</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m
> v.out.ogr input=elev_contour_3m format=ESRI_Shapefile
dsn=/home/yancho/elevation.shp</span></p>
<p><span lang="EN-GB">WARNING: Vector map <elev_contour_3m>
is 3D. Use format specific layer</span></p>
<p><span lang="EN-GB">
creation options (parameter 'lco') to export in 3D rather than 2D</span></p>
<p><span lang="EN-GB">
(default)</span></p>
<p><span lang="EN-GB">DBMI-DBF driver error:</span></p>
<p><span lang="EN-GB">Table 'elev_contour_3m' doesn't exist</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">ERROR: Unable to describe table
<elev_contour_3m></span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">GRASS 6.3.0RC1
(thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > v.out.ogr in=elev_contour_3m
type=face dsn="PG:host=localhost dbname=thesis user=usernamehere
password=passhere" format=PostgreSQL lco="SHPT=ARCZ"</span></p>
<p><span lang="EN-GB">WARNING: Vector map <elev_contour_3m>
is 3D. Use format specific layer</span></p>
<p><span lang="EN-GB">
creation options (parameter 'lco') to export in 3D rather than 2D</span></p>
<p><span lang="EN-GB">
(default)</span></p>
<p><span lang="EN-GB">DBMI-DBF driver error:</span></p>
<p><span lang="EN-GB">Table 'elev_contour_3m' doesn't exist</span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">ERROR: Unable to describe table
<elev_contour_3m></span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB"> </span></p>
<p><span lang="EN-GB">I tried also lco="DIM=3" but
got same results.</span></p>
<p><span style="font-size: 12pt;"> </span></p>
<div style="text-align: center;" align="center"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></div>
<p><span style="font-size: 12pt;">I
am using the free version of SPAMfighter for private users.<br>
It has removed 18742 spam emails to date.<br>
Paying users do not have this message in their emails.<br>
Try <a href="http://www.spamfighter.com/len" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">SPAMfighter</a> for free now!</span></p>
</div>
</div>
<br>_______________________________________________<br>grass-user mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">
http://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></blockquote></div><br>