[GRASS-user] v.in.ogr with "cnames"-option (little help needed)

Brad Douglas rez at touchofmadness.com
Thu Sep 28 13:59:12 EDT 2006


On Thu, 2006-09-28 at 17:19 +0200, Wolfgang Qual wrote:
> Hi list,
> I would like to import a shapefile using v.in.ogr together with the "cnames" option to rename some of the columns. 
> 
> The column names ID_NR, KAT_ID, NAME, SUBNAME, ADRESSE, PLZ, RECHTSWERT
> should be renamed to id,kat,name,subn,adresse,plz,x,y
> 
> Therefore, I wrote:
> GRASS 6.1.cvs (muc_intra):~ > v.in.ogr -o cnames=cat,kat,name,subn,adresse,plz,x,y dsn=./ layer=places out=places_mod
> 
> However, the new colum names are wrong (and I fear that I just do not correctly understand, how I have to use this cnames-command)
> 
> GRASS says:
> Over-riding projection check.
> Proceeding with import...
> Layer: biergAE
> WARNING: Column name changed: 'ID_NR' -> 'kat'
> WARNING: Column name changed: 'KAT_ID' -> 'name'
> WARNING: Column name changed: 'NAME' -> 'subn'
> WARNING: Column name changed: 'SUBNAME' -> 'adresse'
> WARNING: Column name changed: 'ADRESSE' -> 'plz'
> WARNING: Column name changed: 'PLZ' -> 'x'
> WARNING: Column name changed: 'RECHTSWERT' -> 'y'
> Importing map 59 features...

Add another column to 'cnames' before cat (like idnr, etc.).  The
columns are off by one.


-- 
Brad Douglas <rez touchofmadness com>                      KB8UYR
Address: 37.493,-121.924 / WGS84    National Map Corps #TNMC-3785




More information about the grass-user mailing list