[GRASS-user] Joining vectors by location

Daniel Lee lee at isi-solutions.org
Sat Nov 26 15:09:05 EST 2011


Okay, sorry to bug again, but now I do have kind of the same problem again.
Here we go:

v.out.ogr only gives me the field cat in the attribute table, all other
fields are gone:
v.out.ogr input=Buildings at PERMANENT type=area dsn=/tmp/buildings.shp
layer=2 --overwrite

The geometries are exported, but no attributes from layer 2 come with. In
GRASS I can see that the attributes are readable in layer 2. I really need
these attributes in the shapefile, or I need to be able to export the
geometries directly, together with the attributes, to PostGIS - the goal is
to show them in a Geoserver. Any ideas?

Oh, and a tip for anyone that struggles with similar things: I just revised
my SQL script to make the views so that entries in the table
buildings_globalstrahlung_dachflaeche that don't have a matching entry in
gebaeude_nutzflaeche still come with into the new view. I did that by,
rather than using the operator JOIN, using OUTER JOIN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20111126/8dab1876/attachment.html


More information about the grass-user mailing list