Bug report #4929
v.distance needs to be fixed
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Paolo Cavallini | ||
Category: | GRASS | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 14730 |
Description
When using the v.distance module the user is provided with a "(optional) column to read labels" parameter.
It turns that this parameter ("to_column") must be a varchar() column of the "to=" map, but if such column does not exist (or it is not selected) then the module fails
C:\\>v.distance from=pontos@etrs89 from_layer=1 to=ferro@etrs89 to_type=line to_l ayer=1 upload=dist to_column= column=dis dmax=-1 dmin=-1 GRASS_INFO_ERROR(3352,1): Column <> not found in table <ferro> GRASS_INFO_END(3352,1)
so in the QGIS interface/console it is not optional at all.
In the native GRASS GUI the module work as expected when no "to_column" is chosen
v.distance from=pontos@etrs89 to=ferro@etrs89 to_type=line,area upload=dist column=dis
and still works when it is optionally chosen
@v.distance from=pontos@etrs89 to=ferro@etrs89 to_type=line,area upload=dist column=dis to_column=ciao
Associated revisions
dont add empty field to options, fixes #4929
History
#1 Updated by Radim Blazek over 12 years ago
- Status changed from Open to Closed
Fixed in changeset 9a9ab73b61ed0a433f244d657c71742270cdd04f.