[GRASS-de] Anzeigen von Postgis-Layern
Michael Holzmann
mholzmann at iaks.de
Do Jul 15 14:27:54 CEST 2004
Beim schreiben eines Layers mit v.out.ogr in eine Postgis Datenbank wird
unter anderem auch die Spalte ogc_fid des Datentyps int4 angelegt.
"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"
Das Einbinden des Layers mit v.external funktioniert auch noch wie unten zu
sehen ist.
"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"
Wenn ich dann den Layer anzeigen lassen will kommt folgende Nachricht:
"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)
Auch wenn ich die Spalte umbenenne in fid funktioniert es nicht
gearbeitet wird mit:
-grass5.7.cvs-i686-pc-linux-gnu-26_06_2004
-Postgresql 7.4.2
-Postgis 0.8.1
-gdal 1.1.9
Für Hilfe wäre ich sehr dankbar
____________________________________________
Dipl.-Ing. Michael Holzmann
iaks GmbH
Hindelangerstr. 35
87527 Sonthofen
Tel. (08321) 78085-13
Fax (08321) 78085-99
____________________________________________