[GRASS-dev] [GRASS GIS] #3005: v.to.rast allow to use label_column alone

GRASS GIS trac at osgeo.org
Wed Apr 27 01:28:34 PDT 2016


#3005: v.to.rast allow to use label_column alone
-------------------------+-------------------------
 Reporter:  marisn       |      Owner:  grass-dev@…
     Type:  enhancement  |     Status:  new
 Priority:  minor        |  Milestone:  7.1.0
Component:  Vector       |    Version:  svn-trunk
 Keywords:  v.to.rast    |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 At the moment v.to.rast only supports label_column together with
 attr_column. It makes perfect sense, still misses one use case - when
 attr_column is absent and only labels are present. I.e. when attribute
 table contains land use labels but not class codes.

 Proposal is to generate codes on the fly if only label column is provided.

 How it could work: select labelcolumn from db distinct; Enumerate output
 rows; Use row number as a raster category.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3005>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list