[GRASS-user] v.in.ogr of shp file: no centroids but data in table
schubert.seb at googlemail.com
Tue Oct 18 10:10:11 EDT 2011
I imported a shape file into grass
v.in.ogr --o basel_gelaende.shp out=basel_gelaende
Number of nodes: 38602
Number of primitives: 115042
Number of points: 0
Number of lines: 0
Number of boundaries: 115042
Number of centroids: 0
Number of areas: 76441
Number of isles: 1
Number of areas without centroid: 76441
If I understood the grass book correctly, the table cat column and with
that the whole table is connected via the centroids. That would explain
that I don't see any information from the table when I use v.what:
Building spatial index...
Sq Meters: 32796.147
Sq Miles: 0.0127
I could do a v.centroids to calculate the centroids and then also v.what
gives information from the table, but the data is not correct. I guess
grass put the cat values without really knowing the right connection.
It might be important that the map is actually a 3d one, but in "2d
mode" so I got the following warning:
WARNING: Input data contains 3D features. Created vector is 2D only, use
-z flag to import 3D vector
I can import the map in qgis and it works, I do have the right
connection between polygons and table rows. I tried to include
"centroid" in the type parameter of v.in.ogr, but this did not have any
effect for me.
Thanks a lot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20111018/e92b7e95/attachment.bin
More information about the grass-user