[GRASS-stats] Why does rgrass7::writeVECT() silently add a cat column if it doesn't exist?

Veronica Andreo veroandreo at gmail.com
Wed Oct 20 11:41:40 PDT 2021


Hello Tobias,

The cat colum is the ID that GRASS uses for vectors, hence this is expected
and right. The same happens if you import a gpgk or shape or any other
vector file into GRASS. See
https://grass.osgeo.org/grass78/manuals/vectorintro.html for further info

HTH,
Vero



El mié, 20 oct 2021 a las 9:34, Tobias Pilz (<topilz at pik-potsdam.de>)
escribió:

> Dear list,
>
> when I use in R the writeVECT() command the resulting map in GRASS got
> the 'cat' column silently added to its attribute table if it didn't exist.
>
> The vector object in question was previously imported to R via
> readVECT() and had a different column defined as key column.
>
> Is this behaviour of writeVECT() intentional? If yes, why so and
> wouldn't it make sense to give a warning?
>
> Note: I used rgrass7 version 0.2-6 together with GRASS 7.8.5 under Linux
> (opensuse).
>
> Regards,
>
> Tobias
>
>
> _______________________________________________
> grass-stats mailing list
> grass-stats at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-stats
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-stats/attachments/20211020/6c03dc96/attachment.html>


More information about the grass-stats mailing list