[GRASS-user] Trying to export a 3d Layer

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 :slight_smile:

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!

v.db.select tells you that you haven’t an associated db tabel… Maybe something wrong while creating your elev_contoru_3m layer?

Giovanni

2007/12/21, Matthew Pulis < mpulis@gmail.com>:

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 :slight_smile:

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!


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

I did not create the layer myself. Downloaded it in the north Carolina package that came out with Grass Book 3

From: G. Allegri [mailto:giohappy@gmail.com]
Sent: Saturday, December 22, 2007 1:13 AM
To: Matthew Pulis
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Trying to export a 3d Layer

v.db.select tells you that you haven’t an associated db tabel… Maybe something wrong while creating your elev_contoru_3m layer?

Giovanni

2007/12/21, Matthew Pulis < mpulis@gmail.com>:

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 :slight_smile:

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!


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


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!

Matthew,

On Dec 21, 2007 8:09 PM, Matthew Pulis <mpulis@gmail.com> wrote:

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.

...

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()

There must be something wrong with your copy of the data set.
Here it looks different:

v.info elev_contour_3m | grep dblinks
| Number of dblinks: 1 |

v.db.select elev_contour_3m | head -5
cat|level
1|58
2|61
3|64
4|67

Did you probably delete the map attribute table?

Best,
Markus
--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/