Hi,
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.
Any help how I can make this layer into a useable layer outside GRASS is extremely appreciated!
I am taking this email to wish everyone on the list best wishes for Christmas and New Year to you and your families
Matthew
I am supplying some info which might help you give me some tips how I can do it.
GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > v.out.ascii elev_contour_3m format=standard | head -n 20
ORGANIZATION: NC OneMap
DIGIT DATE:
DIGIT NAME: helena
MAP NAME:
MAP DATE: Fri Mar 9 12:12:48 2007
MAP SCALE: 1
OTHER INFO:
ZONE: 0
MAP THRESH: 0.000000
VERTI:
L 309 1
644845.39132067 228495 58
644850.5257363 228485 58
644855 228476.80568172 58
GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > v.db.select elev_contour_3m
DBMI-DBF driver error:
Table ‘elev_contour_3m’ doesn’t exist.
Error in db_open_select_cursor()
GRASS 6.3.0RC1 (thesis):~/thesis_gis/thesis/yancho/vector/elev_contour_3m > v.info elev_contour_3m
±---------------------------------------------------------------------------+
| Layer: elev_contour_3m |
| Mapset: yancho |
| Location: thesis |
| Database: /home/yancho/thesis_gis |
| Title: |
| Map scale: 1:1 |
| Map format: native |
| Name of creator: helena |
| Organization: NC OneMap |
| Source date: Fri Mar 9 12:12:48 2007
| Number of lines: 3355 Number of islands: 0 |
And these are the output formats I tried :
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
WARNING: Vector map <elev_contour_3m> is 3D. Use format specific layer
creation options (parameter ‘lco’) to export in 3D rather than 2D
(default)
DBMI-DBF driver error:
Table ‘elev_contour_3m’ doesn’t exist
ERROR: Unable to describe table <elev_contour_3m>
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”
WARNING: Vector map <elev_contour_3m> is 3D. Use format specific layer
creation options (parameter ‘lco’) to export in 3D rather than 2D
(default)
DBMI-DBF driver error:
Table ‘elev_contour_3m’ doesn’t exist
ERROR: Unable to describe table <elev_contour_3m>
I tried also lco=”DIM=3” but got same results.
I am using the free version of SPAMfighter for private users.
It has removed 18742 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!