[GRASS-dev] v.buffer

Markus Neteler neteler at osgeo.org
Thu Apr 23 03:53:27 EDT 2009


On Thu, Apr 23, 2009 at 8:50 AM, Paolo Cavallini <cavallini at faunalia.it> wrote:
> Hi all.
> AFAIK, v.buffer has been deprecated, and replaced by v.buffer2.

Yes.

> As a result, the qgis-plugin-grass cannot use the command anymore.
> Of course it is possible and esy to replace the command, but care should be taken
> when linking to different grass versions. Wouldnì't it be easier/more
> robust to either change the name of the new module back to v.buffer, or
> to ln?

This is the case:

cat vector/v.buffer2/Makefile
MODULE_TOPDIR = ../..
PGM = v.buffer
...

The new version is called v.buffer as before (obviously).

> See: https://trac.osgeo.org/qgis/ticket/1629

OK, I found the problem:
# GRASS 6.3, http://grass.osgeo.org/grass63/manuals/html63_user/v.buffer.html:
buffer=float
    Buffer distance in map units

# GRASS 6.4, http://grass.osgeo.org/grass64/manuals/html64_user/v.buffer.html:
distance=float
    Buffer distance along major axis in map units

This is bad.

Options:
- QGIS updates its toolbox XML file to rename the parameter
- GRASS 6.4+ renames back "distance" to "buffer"

Thanks for pointing out.
Markus


More information about the grass-dev mailing list