[GRASS-user] importing a vector, problem with duplicate column name: cat_

Margherita Di Leo diregola at gmail.com
Thu Aug 4 01:32:57 PDT 2016


On Thu, Aug 4, 2016 at 10:29 AM, Markus Metz <markus.metz.giswork at gmail.com>
wrote:

> On Thu, Aug 4, 2016 at 10:06 AM, Margherita Di Leo <diregola at gmail.com>
> wrote:
>
>
> > If in my work flow I have to import-process-export multiple
> > times, this will add a column every time unless I explicitly drop a
> column?
>
> Yes, or use the key option of v.in.ogr. With your vector you could use
> v.in.ogr key=cat, then drop the cat_ column. The next time you
> re-import the vector, use again the key option, this should avoid that
> "categories are generated as unique values and stored in [in a newly
> created] 'cat' column"
>
> Genau. Thank you
Cheers,


-- 
Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160804/77101543/attachment.html>


More information about the grass-user mailing list