[GRASS-user] simple way to join some attribute data w/o geometries

Moritz Lennert mlennert at club.worldonline.be
Tue Jan 8 07:58:24 EST 2008


On Tue, January 8, 2008 13:04, Benjamin Ducke wrote:
> Thanks all for your suggestions. This is getting to be
> a very fruitful discussion.
>
> I would agree with the proposed enhancements to v.db.join.
> This seems straight-forward and coherent with GRASS usage
> GIVEN THAT there is a DBF file as a departure point.

no: db.in.ogr with the cvs driver, but this entails that the user create a
.cvst file with column definitions.

You could maybe patch the ogr cvs driver to allow automatic type recognition.

> So how about also extending v.in.ascii slightly to accept
> input lines without coordinate pairs and create a plain
> DBF table with user-defined field formats?

+1. I like that better.

> It should also not be too hard to add an option that
> would guess the correct formats for the user.

It's all done in v.in.ascii. So it should be enough to add an 'only create
table' flag and then conditionalise everything concerning the map creation
on this flag not being set...

>
> In that case, pulling in attribute data from a text file
> would amount to using v.in.ascii and v.db.join only, which
> I think should not give anyone too many headaches.

now it's db.in.ogr + v.db.join, but with the need for the .cvst file...

Moritz



More information about the grass-user mailing list