benducke / Network-reconstruction-tools-for-GRASS-GIS

Node-based network model generator for GRASS GIS 7.x (and QGIS 3.x)
GNU General Public License v3.0
4 stars 1 forks source link

v.net.models: modify option 'key=' to auto-add a key field if necessary #63

Open benducke opened 1 month ago

benducke commented 1 month ago

The 'key' field is mandatory and it must be of type integer. Its purpose is to provide a primary key that is independent from the default GRASS primary key (normally in integer field 'cat').

Since input maps will often not have an extra integer field with unique values, some users might struggle with this requirement.

An easy convenience fix would be the following: