[GRASS-user] v.in.ascii

Markus Neteler neteler at osgeo.org
Tue Feb 3 16:35:38 EST 2009


On Tue, Feb 3, 2009 at 10:29 PM, Harald Hofmann
<Harald.Hofmann at sci.monash.edu.au> wrote:
> Sorry Hamish,
> I replied a little to quickly, I should read the mails to the end ... :-)
>
> Yes, I have tried the option colums=. I just thought there is an easier way
> around.

There (potentially) is:

1. Import table with db.in.ogr (if CSV, create also .csvt file: define
appropriately
the types Real, String, Date, Time and/or DateTime):
 http://grass.osgeo.org/grass64/manuals/html64_user/db.in.ogr.html
If needed, use the "key" parameter to auto-generate a unique key column.

2. generate a map from the imported table:
v.in.db
http://grass.osgeo.org/grass64/manuals/html64_user/v.in.db.html

If you have many columns this may be quicker (slightly less precise concerning
the column type definitions).

Markus


More information about the grass-user mailing list