[GRASSLIST:3926] Re: display Postgis layer

Radim Blazek blazek at itc.it
Thu Jul 15 12:07:36 EDT 2004


Too old GDAL, I think.

Radim

On Thursday 15 July 2004 16:51, Michael Holzmann wrote:
> At writing of a Layer with v.out.ogr in a Postgis DB a column „ogc_fid“ of
> data type int4 is put on.
>
> "GRASS 5.7.cvs:~ > v.out.ogr input=fields type=area dsn="PG:dbname=testdb"
> layer=felder format=PostgreSQL
>  Exporting 65 areas...
>  GRASS Topology -> Simple Features conversion (may take some time)...
>  Processing area 65... 100%
>  67 features written
>  WARNING: 2 features without category written"
>
> Integrating the Layer with v.external operats also as below is to be seen.
>
> "GRASS 5.7.cvs:~ > v.external dsn="PG:dbname=testdb" layer=felder
> output=Felder
>  Building topology ...
>  Feature:   67
>  Topology was built.
>  Number of nodes     :   130
>  Number of primitives:   154
>  Number of points    :   0
>  Number of lines     :   0
>  Number of boundaries:   87
>  Number of centroids :   67
>  Number of areas     :   87
>  Number of isles     :   87
>  Number of areas without centroid :   20"
>
> If  I want to display the Layer, the following massage appears.
>
> "GRASS 5.7.cvs:~ > d.vect map=Felder
>  ERROR: Cannot read feature, FID = 0
>
>  child process exited abnormally
>  child process exited abnormally
>     while executing
>  "exec d.vect map=test123 color=0:0:0 lcolor=0:0:0 fcolor=none
> display=shape type=point,line,boundary,centroid,area icon=basic/cross
> size=5 field=1 lsiz..."
>     ("eval" body line 1)
>     invoked from within
>  "eval "exec $cmd >@stdout 2>@stdout""
>     (procedure "Dm::execute" line 12)
>     invoked from within
>  "Dm::execute $cmd"
>     (procedure "DmVector::display" line 75)
>     invoked from within
>  "DmVector::display $node"
>     ("vector" arm line 2)
>     invoked from within
>  "switch $type {
>         group {
>             DmGroup::display $node
> 	}
> 	raster {
> 	    DmRaster::display $node
> 	}
> 	labels {
> 	    DmLabels::display $node
> ..."
>     (procedure "Dm::display_node" line 6)
>     invoked from within
>  "Dm::display_node $n"
>     (procedure "DmGroup::display" line 11)
>     invoked from within
>  "DmGroup::display "root""
>     (procedure "Dm::display" line 5)
>     invoked from within
>  "Dm::display"
>     ("uplevel" body line 1)
>     invoked from within
>  "uplevel \#0 $cmd"
>     (procedure "Button::_release" line 18)
>     invoked from within
>  "Button::_release .mainframe.topf.tb0.bbox1.b0"
>     (command bound to event)
>
> Even if I rename the column in „fid“ it does not work
>
> -grass5.7.cvs-i686-pc-linux-gnu-26_06_2004
> -Postgresql 7.4.2
> -Postgis 0.8.1
> -gdal 1.1.9




More information about the grass-user mailing list