[GRASS-user] Error importing 3d csv in grass

Anna Petrášová kratochanna at gmail.com
Wed May 18 06:43:22 PDT 2022


Hi,

my guess is that the values in column 5 are not unique, which is a problem,
because you specified it as cat column, which should be the primary key. So
try cat=0 if that helps, that will autogenerate the cat column with unique
categories.

Anna

On Sun, May 8, 2022 at 2:25 AM Helmut Kudrnovsky <hellik at web.de> wrote:

> >v.in.ascii --overwrite
> >input=/home/etorresm/Desktop/Vajont_Export_res_integer.csv
> >output=voxel_res_int separator=comma skip=1 x=2 y=3 z=4 cat=5
> [...]
> >UNIQUE constraint failed: voxel_res_int.int_5
> >DBMI-SQLite driver error:
> >Error in sqlite3_step():
> >UNIQUE constraint failed: voxel_res_int.int_5
> >ERROR: Unable to insert new record: insert into voxel_res_int values ( 2,
> >1015614, 1048407, 2665, 4)
> >WARNING: Table <voxel_res_int> linked to vector map <voxel_res_int> does
> >not exist
>
> can you share the 10 first lines of the input ascii file?
>
> kind regards
> Helmut
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220518/d73cc072/attachment.htm>


More information about the grass-user mailing list