0

I'm running grass76 on CentOS 7. When I have a network map (generated using v.net) with layer 1 having the arcs and layer 2 and 3 having the sets of nodes that I need to connect. Details are as follows:

GRASS 7.6.0 (srilanka2):/tmp/reprojected > v.category netfinal op=report
Layer: 1
type       count        min        max
point          0          0          0
line       18775          1          1
boundary       0          0          0
centroid       0          0          0
area           0          0          0
face           0          0          0
kernel         0          0          0
all        18775          1          1
Layer: 2
type       count        min        max
point       4242          1       2134
line           0          0          0
boundary       0          0          0
centroid       0          0          0
area           0          0          0
face           0          0          0
kernel         0          0          0
all         4242          1       2134
Layer: 3
type       count        min        max
point         10          1         10
line           0          0          0
boundary       0          0          0
centroid       0          0          0
area           0          0          0
face           0          0          0
kernel         0          0          0
all           10          1         10

However when I try to run v.net.distance I receive the following error:

v.net.distance in=netfinal out=distances flayer=2 to_layer=3 --overwrite
Building graph...
Registering arcs...
 100%
Flattening the graph...
Graph was built
Distances to 'to' features ...
Tracing paths from 'from' features ...
DBMI-SQLite driver error:
Error in sqlite3_step():
column cat is not unique

DBMI-SQLite driver error:
Error in sqlite3_step():
column cat is not unique

ERROR: Cannot insert new record: insert into distances values (1, 2,
       59964.035000)

Not sure if this is due to a problem with my layers or SQLite. I followed the steps given at https://grass.osgeo.org/grass76/manuals/v.net.distance.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.