[QGIS-trac] Re: [Quantum GIS] #1629: replace v.buffer with v.buffer2 for GRASS 6.4

Quantum GIS qgis at qgis.org
Thu Apr 23 03:52:39 EDT 2009


#1629: replace v.buffer with v.buffer2 for GRASS 6.4
-----------------------------------------------------+----------------------
        Reporter:  pcav                              |         Owner:  nobody
            Type:  bug                               |        Status:  new   
        Priority:  major: does not work as expected  |     Milestone:        
       Component:  GRASS                             |       Version:  HEAD  
      Resolution:                                    |      Keywords:        
Platform_version:                                    |      Platform:  All   
        Must_fix:  No                                |   Status_info:  0     
-----------------------------------------------------+----------------------
Changes (by neteler):

 * cc: neteler (added)

Comment:

 I cannot reproduce this:

 {{{
 GRASS 6.4.0svn (spearfish60):~ > v.buffer --interface-description
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE task SYSTEM "grass-interface.dtd">
 <task name="v.buffer">
         <description>
                 Creates a buffer around features of given type (areas must
 contain centroid).
         </description>
         <keywords>
                 vector, buffer
         </keywords>
 }}}

 The new code is obviously named "v.buffer" as before:

 {{{
 GRASS 6.4.0svn (spearfish60):~/grass64 > head vector/v.buffer2/Makefile
 MODULE_TOPDIR = ../..

 PGM = v.buffer
 ...
 }}}

 The GRASS 6 production line should maintain full compatibility even if a
 module is rewritten from scratch as in the case of v.buffer.

 {{{
 GRASS 6.4.0svn (spearfish60):~/grass64 > v.buffer help

 Description:
  Creates a buffer around features of given type (areas must contain
 centroid).

 Keywords:
  vector, buffer

 Usage:
  v.buffer [-sc] input=name output=name [type=string[,string,...]]
    [layer=value] [distance=value] [minordistance=value] [angle=value]
    [bufcolumn=name] [scale=value] [tolerance=value] [--overwrite]
    [--verbose] [--quiet]
 }}}

 Ha, I see 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 and needs to be fixed in GRASS unless QGIS can update "buffer"
 to "distance" in the XML file.

 Markus

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1629#comment:1>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list