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

Wolfgang Qual Wolfgang.Qual at gmx.net
Fri Sep 29 04:17:41 EDT 2006


Hi Brad, list,
thanks alot! It worked. at list: would it be possible to add an example for this command to the grass-manual - would be very helpful

Best regards,
Wolfgang
--
-------- Original-Nachricht --------
Datum: Thu, 28 Sep 2006 10:59:12 -0700
Von: Brad Douglas <rez at touchofmadness.com>
An: Wolfgang Qual <Wolfgang.Qual at gmx.net>
Betreff: Re: [GRASS-user] v.in.ogr with "cnames"-option (little help needed)

> 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

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




More information about the grass-user mailing list