One output map from r.watersheds is identified basins. I want to use this
output for input to r.basin to calculate descriptors for each one. When I
query the output map I am shown a numeric site_name for each calculated
basin (see attached map with vector streams overlaid).
Is there a way to display the site_name on each colored basin? This would
make it much easier to communicate basin descriptions by illustrating where
each basin is located in the area. I've looked through the list of r.*
modules and did not find one that would do this task.
Is there a way to display the site_name on each colored basin? This would
make it much easier to communicate basin descriptions by illustrating
where each basin is located in the area. I've looked through the list of
r.* modules and did not find one that would do this task.
Related question: how can I obtain the areas of the calculated basins? I
tried r.to.vect but the output map has no attribute table associated with
it.
Is there a way to display the site_name on each colored basin? This would
make it much easier to communicate basin descriptions by illustrating
where each basin is located in the area. I’ve looked through the list of
r.* modules and did not find one that would do this task.
Related question: how can I obtain the areas of the calculated basins? I
tried r.to.vect but the output map has no attribute table associated with
it.
This is weird. Which is the exact command line you used? should be something like:
r.to.vect input=basins output=basins feature=area
Once you have that, you can use v.label to display labels, and calculate the area using v.db.addcol + v.to.db
r.to.vect input=basins output=basins feature=area
Once you have that, you can use v.label to display labels.
I must be doing something incorrectly. After running r.to.vect I ran
v.label specifying 'value' as the attribute column. No labels display even
after I specify the attribute column, color, and size in the GUI dialog. The
command displayed at the bottom of the GUI dialog box reflects the choices
made above.
r.to.vect input=basins output=basins feature=area
Once you have that, you can use v.label to display labels.
I must be doing something incorrectly. After running r.to.vect I ran
v.label specifying ‘value’ as the attribute column. No labels display even
after I specify the attribute column, color, and size in the GUI dialog. The
command displayed at the bottom of the GUI dialog box reflects the choices
made above.
Have a look that you’ve enabled displaying of an attribute column. In the GUI, it’s on the “Required” tab as “Display selected attribute based on attrcol”. On the CLI "d.vect disp=shape,attr "
This always trips me up also. Should be a FAQ. And perhaps the “Display attribute…” should get enabled somehow automatically whenever an attribute column for labeling is chosen.
Have a look that you've enabled displaying of an attribute column. In the
GUI, it's on the "Required" tab as "Display selected attribute based on
attrcol". On the CLI "d.vect disp=shape,attr " This always trips me up
also. Should be a FAQ. And perhaps the "Display attribute..." should get
enabled somehow automatically whenever an attribute column for labeling is
chosen.
Micha,
I saw that before I wrote for help, but checking the attribute checkbox
makes no difference. I cannot display either the cat numbers nor the
raster map site_name which is the value column in the vector table.
When I uncheck all features but area the display clears. I have to try
various options before the boundaries re-appear.
On Wed, May 2, 2012 at 8:20 AM, Micha Silver <micha@arava.co.il> wrote:
Have a look that you’ve enabled displaying of an attribute column. In the GUI, it’s on the “Required” tab as “Display selected attribute based on attrcol”. On the CLI "d.vect disp=shape,attr "
This always trips me up also. Should be a FAQ. And perhaps the “Display attribute…” should get enabled somehow automatically whenever an attribute column for labeling is chosen.
Have a look that you’ve enabled displaying of an attribute column. In the
GUI, it’s on the “Required” tab as “Display selected attribute based on
attrcol”. On the CLI "d.vect disp=shape,attr " This always trips me up
also. Should be a FAQ. And perhaps the “Display attribute…” should get
enabled somehow automatically whenever an attribute column for labeling is
chosen.
Micha,
I saw that before I wrote for help, but checking the attribute checkbox
makes no difference. I cannot display either the cat numbers nor the
raster map site_name which is the value column in the vector table.
When I uncheck all features but area the display clears. I have to try
various options before the boundaries re-appear.
Map scale: 1:1
Map format: native
Name of creator: rshepard
Organization:
Source date: Wed May 2 10:42:33 2012
----------------------------------------------------------------------------
Type of Map: vector (level: 2)
Number of points: 0 Number of areas: 378
Number of lines: 0 Number of islands: 1
Number of boundaries: 835 Number of faces: 0
Number of centroids: 377 Number of kernels: 0
On Wed, May 2, 2012 at 10:25 PM, Margherita Di Leo <diregola@gmail.com> wrote:
On Wed, May 2, 2012 at 8:20 AM, Micha Silver <micha@arava.co.il> wrote:
Have a look that you've enabled displaying of an attribute column. In the
GUI, it's on the "Required" tab as "Display selected attribute based on
attrcol". On the CLI "d.vect disp=shape,attr "
This always trips me up also. Should be a FAQ. And perhaps the "Display
attribute..." should get enabled somehow automatically whenever an attribute
column for labeling is chosen.