[GRASS-dev] [GRASS GIS] #1942: v.label.sa not working with areas

GRASS GIS trac at osgeo.org
Mon Apr 22 06:10:02 PDT 2013


#1942: v.label.sa not working with areas
----------------------+-----------------------------------------------------
 Reporter:  richardc  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  6.4.3                    
Component:  Vector    |     Version:  6.4.3 RCs                
 Keywords:            |    Platform:  Linux                    
      Cpu:  x86-32    |  
----------------------+-----------------------------------------------------
 Ref: http://osgeo-org.1560.x6.nabble.com/v-label-sa-not-working-with-
 areas-td5048543.html

 RichardC wrote:

 v.label.sa does not work with areas. On running the following I get an
 empty labels file.


 {{{
 v.label.sa --verbose map=hydrobasins_africa at hydrolayers type=area
   column=MAJ_NAME labels=africa_basins_sa font=Trebuchet_MS size=0.5
 color=red
 }}}


 However, it works with lines - I can output a labels file if the layer
 comprises line features.

 ----

 _____________
 I just tested with census_wake2000 from the NC demo dataset and can
 confirm the issue.

 The problem seems to be with the type 'area' which is not recognised
 somewhere along the process. Adding the option 'centroid' to the 'type'
 parameter and using that option makes it create the expected labels.

 I'm not sure which would be the better solution:

 - Leave the options as is and change the code so that 'area' is remapped
 to 'centroid'

 - Change the options from area to centroid.

 Moritz

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1942>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list