[GRASSLIST:3594] Fwd: grass5.7 v.external and postgis layer

giuseppe giuseppe19291 at libero.it
Fri Jun 4 15:20:37 EDT 2004


Hi All.
 I have tried to use v.external on a postgis layer created from a grass
 vector layer with v.out.ogr:

GRASS 5.7.-cvs:~ > v.out.ogr  input=nuovo  dsn=PG:dbname=WGS84_sele layer=new
format=PostgreSQL

Linking with v.external look good:
GRASS 5.7.-cvs:~ > v.external dsn="PG:dbname=WGS84" output=new_link_pg
layer=new

Building topology ...
Feature:    1
Topology was built.
Number of nodes     :   2
Number of primitives:   1
Number of points    :   0
Number of lines     :   1
Number of boundaries:   0
Number of centroids :   0
Number of areas     :   0
Number of isles     :   0


but when i try to display the vector with d.vect I have an error:

GRASS 5.7.-cvs:~ > d.vect map=new_link_pg color=0:0:0 lcolor=0:0:0
fcolor=170:170:170 display=shape type=point,line,boundary,centroid,area
icon=basic/cross size=5 lsize=8
ERROR: Cannot read feature, FID = 0.




USED SOFTWARE
grass57_exp_2004_05_24
gdal-cvs-20040530
postgis 0.8.2
postgresql7.4.1

Have I wrong or forget something?

Many thanks Giuseppe.

-------------------------------------------------------




More information about the grass-user mailing list